myChart.setOption(data);
myChart.dispatchAction({ type: 'highlight', dataIndex: 0 }); // dataIndex:默认选中项索引值
myChart.dispatchAction({ type: 'showTip', seriesIndex: 0, position: [120, 220], dataIndex: 0 }); // 点击生成detip工具条位置
myChart.on('mouseover', (e) => {
if (e.dataIndex !== 0) { // 取消默认项选中状态
myChart.dispatchAction({ type: 'downplay', dataIndex: 0 });
}
});