echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] echarts sets formatter, the label on the left and right scroll will not change

Open Futurejason opened this issue 6 months ago • 1 comments

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

Futurejason avatar Jun 05 '25 09:06 Futurejason

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

helgasoft avatar Jun 06 '25 01:06 helgasoft

左右滚动,图表 x 轴的自定义标签将相应变化

使用简单xAxis: {type: "category"}将为您提供标签作为随着水平滚动而变化的连续数字。 I've tried it. The category is set, but the left and right scrolling x-axis is still unchanged.

Image

Futurejason avatar Jun 17 '25 11:06 Futurejason