摘要: 如果,想要做y轴label hover后后面出现图表,文字高亮,主要使用的是yAxis.axisLabel.formatter, yAxis.axisLabel.formatter, 配合echarts实例的mouseover mouseout事件,通过设置hover类目的索引,来给对应类目设置激活 阅读全文
posted @ 2022-09-23 18:15 井凉一一 阅读(2264) 评论(0) 推荐(0) 编辑
摘要: 如图,想要做可以点击轴label,触发后续事件,上代码: const ref = useRef() const eChartInstance = useRef<any>() eChartInstance.current.on('click', function (params) { if (para 阅读全文
posted @ 2022-09-23 18:03 井凉一一 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: 如↑图,想要滚动效果,主要使用的是dataZoom属性,上代码: dataZoom = [ { id: 'dataZoomY', yAxisIndex: [0], show: true, //是否显示滑动条,不影响使用 type: 'slider', // 这个 dataZoom 组件是 slide 阅读全文
posted @ 2022-09-23 17:57 井凉一一 阅读(2736) 评论(0) 推荐(0) 编辑