ECharts axisPointer 显示十字准星指示器

ECharts About 241 words

cross

当鼠标或手指hover到图表时,显示交叉轴,利于观察X轴和Y轴对应的数值。

设置axisPointertypecross

const option = {
    tooltip: {
        axisPointer: {
            type: "cross",
        }
    },
}

文档

https://echarts.apache.org/zh/option.html#tooltip.axisPointer.type

Views: 5 · Posted: 2026-03-25

———         Thanks for Reading         ———

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓
Prev Post
Today In History
Browsing Refresh