|
@@ -606,12 +606,41 @@ function initSectionalCombinationChart(data){
|
|
})
|
|
})
|
|
|
|
|
|
console.log(seriesData);
|
|
console.log(seriesData);
|
|
|
|
+
|
|
|
|
+ const tooltip={
|
|
|
|
+ formatter:function () {
|
|
|
|
+ let str=`<b>${this.points[0].x}</b>`
|
|
|
|
+ this.points.forEach(item=>{
|
|
|
|
+ const sObj=seriesData.find(_=>_.name===item.series.name)
|
|
|
|
+ str=str+`<br><span style="color:${item.color}">\u25CF</span>${sObj.name}:${item.y} ${sObj.unitNameCh}`
|
|
|
|
+ })
|
|
|
|
+ return str
|
|
|
|
+ },
|
|
|
|
+ formatterCh:function () {
|
|
|
|
+ let str=`<b>${this.points[0].x}</b>`
|
|
|
|
+ this.points.forEach(item=>{
|
|
|
|
+ const sObj=seriesData.find(_=>_.name===item.series.name)
|
|
|
|
+ str=str+`<br><span style="color:${item.color}">\u25CF</span>${sObj.nameCh}:${item.y} ${sObj.unitNameCh}`
|
|
|
|
+ })
|
|
|
|
+ return str
|
|
|
|
+ },
|
|
|
|
+ formatterEn:function () {
|
|
|
|
+ let str=`<b>${this.points[0].x}</b>`
|
|
|
|
+ this.points.forEach(item=>{
|
|
|
|
+ const sObj=seriesData.find(_=>_.name===item.series.name)
|
|
|
|
+ str=str+`<br><span style="color:${item.color}">\u25CF</span>${sObj.nameEn}:${item.y} ${sObj.unitNameEn}`
|
|
|
|
+ })
|
|
|
|
+ return str
|
|
|
|
+ },
|
|
|
|
+ shared:true
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
chartData.value = {
|
|
chartData.value = {
|
|
title: {
|
|
title: {
|
|
text:''
|
|
text:''
|
|
},
|
|
},
|
|
|
|
+ tooltip,
|
|
series: seriesData,
|
|
series: seriesData,
|
|
yAxis: yAxis,
|
|
yAxis: yAxis,
|
|
xAxis,
|
|
xAxis,
|