{
title: {
text: "用量"
},
lineWidth: 1
},
tooltip..."top",
y: -10
},
series: []
}
]
}
},
但是这种方法如果想在tooltip...的格式化中加上unit单位,则无法获取到unit的值
可以修改如下
在mounted 钩子中定义chartOptions0
let vueref = this
this.chartOptions0= {...title: {
text: null,
},
lineWidth: 1,
},
tooltip...marker: { enabled: false },
},
},
series: [],
},
vue-highcharts要改成原生的highcharts