ECharts axisPointer 显示十字准星指示器
ECharts About 241 wordscross
当鼠标或手指hover到图表时,显示交叉轴,利于观察X轴和Y轴对应的数值。
设置axisPointer的type为cross。
const option = {
tooltip: {
axisPointer: {
type: "cross",
}
},
}
文档
https://echarts.apache.org/zh/option.html#tooltip.axisPointer.type
Views: 9 · Posted: 2026-03-25
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...