echarts
echarts copied to clipboard
[Bug] echarts sets formatter, the label on the left and right scroll will not change
Version
5.6.0
Link to Minimal Reproduction
https://codesandbox.io/p/sandbox/mix-zoom-on-value-forked-2lrfyq
Steps to Reproduce
直接左右拖拽右侧柱状图,会发现x轴以index为label的数据始终没有改变
Current Behavior
使用自定义label时,在小屏幕上显示部分图表数据,需要对图表进行左右滚动,且禁用放大缩小
Expected Behavior
能够实现左右滚动且图表x轴的自定义label会跟随变化
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
scroll left and right and the custom label of the chart's x-axis will change accordingly
using simple xAxis: {type: "category"} will give you labels as consecutive numbers that change with horizontal scroll
左右滚动,图表 x 轴的自定义标签将相应变化
使用简单
xAxis: {type: "category"}将为您提供标签作为随着水平滚动而变化的连续数字。 I've tried it. Thecategoryis set, but the left and right scrolling x-axis is still unchanged.