initChart() {
this.chart = echarts.init(document.getElementById("myChart"))
var option = {
backgroundColor:'#232d36',
tooltip: {
trigger: 'axis',
axisPointer: {
lineStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0,
color: 'rgba(0, 255, 233,0)'
}, {
offset: 0.5,
color: 'rgba(255, 255, 255,1)',
}, {
offset: 1,
color: 'rgba(0, 255, 233,0)'
}],
vue echarts 每次调用接口没有清除上一次内容
最新推荐文章于 2024-02-23 18:29:55 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)