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

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

给个例子:

 

 myChart.dispatchAction({

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

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

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

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

      dataIndex: 2

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

      //name?: string

    });

  }

参考连接:http://www.noobyard.com/article/p-tpfvnggx-bs.html