通过控制台在现有图表 js 上触发轴指针功能
Trigger axispointer function on existing chart js via console
我有一个类似echarts docs中的图表js
https://ecomfe.github.io/echarts-doc/public/en/option.html#axisPointer
我想在我指定的图形中的某个点从 Web 控制台触发此轴指针。那可能吗?如果可以,怎么做?
有没有办法为此调用任何图表函数?
找到我之前提到的演示网站的操作方法
var ch=echarts.init(document.getElementById('chart-panel'))
ch.dispatchAction({
type:'showTip',
seriesIndex:0,
dataIndex:0});
对轴指针有些作用。
我有一个类似echarts docs中的图表js https://ecomfe.github.io/echarts-doc/public/en/option.html#axisPointer 我想在我指定的图形中的某个点从 Web 控制台触发此轴指针。那可能吗?如果可以,怎么做?
有没有办法为此调用任何图表函数?
找到我之前提到的演示网站的操作方法
var ch=echarts.init(document.getElementById('chart-panel'))
ch.dispatchAction({
type:'showTip',
seriesIndex:0,
dataIndex:0});
对轴指针有些作用。