echart默认展示某个点的tooltip
# 主要js部分
nextTick(() => {
renderEcharts(props.id, option)
let mychart = renderEcharts(props.id, option, true)
setTimeout(() => {
mychart.dispatchAction({
type: 'showTip',
seriesIndex: 0, // 指定系列
dataIndex: 4 // 指定数据项
})
}, 100)
})
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
上次更新: 2024/10/26, 21:11:16