echarts
echarts copied to clipboard
[Bug] 多图联动,工具栏缩放dataZoom,icon高亮状态异常
Version
5.5.0
Link to Minimal Reproduction
无
Steps to Reproduce
- echarts.connect() 使多图表联动
- 配置项开启工具栏 缩放工具
toolbox: { feature: { dataZoom: {}, restore: {} } }, - 问题1:左侧图表 通过工具栏缩放,右侧图表也会正常缩放。但是右侧图表 ‘区域缩放还原’ icon高亮状态异常
- 问题2:在步骤3的基础上,右侧图表点击重置icon,左侧图表的‘区域缩放还原’icon 依旧高亮
Current Behavior
多图联动时,区域缩放,多图表的缩放icon 高亮状态没有完全联动
Expected Behavior
期望 多图联动时,能满足以下其中一个就行,
- 所有图表的icon缩放状态联动
- 只联动tooltip,取消缩放的功能联动
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
@huihui925 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Bug] Multi-image linkage, toolbar zooming dataZoom, icon highlight status abnormality
BODY
Version
5.5.0
Link to Minimal Reproduction
none
Steps to Reproduce
- echarts.connect() links multiple charts
- Configuration item opens toolbar zoom tool
toolbox: { feature: { dataZoom: {}, restore: {} } }, - Question 1: When the chart on the left is scaled through the toolbar, the chart on the right will also scale normally. However, the highlight status of the ‘Region Zoom Restore’ icon in the chart on the right is abnormal.
- Question 2: Based on step 3, click the reset icon on the right chart, but the ‘Region Zoom Restore’ icon on the left chart is still highlighted.
Current Behavior
When multiple charts are linked, the area is zoomed, and the zoom icon highlighting state of multiple charts is not fully linked.
Expected Behavior
It is expected that when linking multiple pictures, one of the following will be satisfied:
- Linkage of icon scaling status of all charts
- Only link the tooltip and cancel the linkage of the zoom function.
Environment
- OS:
-Browser:
- Framework:
Any additional comments?
No response
@huihui925 Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.