apache / apache/echarts

[Feature] 如何控制x/y轴上与dataZoom联动的刻度的精度

Open
#20,765 3 comments 0 reactions 0 assignees View on GitHub
new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
15h 17m
Merged PRs (30d)
5

Description

### What problem does this feature solve?

![Image](https://github.com/user-attachments/assets/c52e663f-38f0-4e2c-b9fc-b7d06abdfdce)
如图,当我对拖动dataZoom栏时,y轴最顶部和底部的刻度会显示当前的范围,我想对这个刻度的精度进行控制,有哪个配置项可以支持。
yAxis.axisLabel.formatter会影响y轴其他正常情况下的刻度,感觉也不是很合适。

### What does the proposed API look like?

同上

Contributor guide

Open the contributing guide

Research direction

Start by tracing how dataZoom updates the y-axis labels and how yAxis.axisLabel.formatter is applied. Define and implement a configuration for the precision of the top and bottom range labels during dataZoom without changing normal y-axis labels, then add coverage for both states.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.