echarts 官网种的api有描述 但是初学者并不容易懂怎么用,

echart 自动第一次高亮状态 默认tootip 默认dataZoomechart 自动第一次高亮状态 默认tootip 默认dataZoom

给个例子:

 

 myChart.dispatchAction({

      type: 'showTip',//表示默认第一次进入时的高亮

      // 系列的 index,在 tooltip 的 trigger 为 axis 的时候可选。

      seriesIndex: 0,//更改来尝试到底是哪一个在高亮

      // 数据的 index,如果不指定也可以通过 name 属性根据名称指定数据

      dataIndex: 2

      // 可选,数据名称,在有 dataIndex 的时候忽略

      //name?: string

    });

  }

参考连接:https://blog.csdn.net/luanpeng825485697/article/details/78886706

相关文章:

  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-07-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-05-08
  • 2021-04-03
  • 2022-12-23
  • 2021-06-28
相关资源
相似解决方案