apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.61k stars 19.62k forks source link

[Bug] Timeline-progress-label formatter not returning expected value #18673

Open BrianWahinya opened 1 year ago

BrianWahinya commented 1 year ago

Version

5.4.2

Link to Minimal Reproduction

https://codesandbox.io/s/echarts-timeline-progress-bug-33tjj7?file=/src/Charts/map.jsx

Steps to Reproduce

  1. Go to the timeline.js file.
  2. Inside the timeline object, head over to the progress key
  3. Configure your own formatter to change the label value

Current Behavior

In the example image below, it returns the year image

Expected Behavior

It should return the progress-label-formatter value defined. There is also need for a way to show currently active label .

Environment

- OS: Windows 10/11
- Browser: Chrome 113.0.5672.127
- Framework: React and Vanilla JS ES6

Any additional comments?

The goal of this is to ensure the current active checkpoint label is of a different color, font-size or both. Currently all the progress labels are changing yet in some cases the active label should be different from the rest.

echarts-bot[bot] commented 1 year ago

I'm sorry to close this issue for it lacks the necessary title. Please provide a descriptive and as concise as possible title to describe your problems or requests and then the maintainers or I will reopen this issue.

Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.

A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.

Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.

helgasoft commented 1 year ago

confirmed, timeline progress.label.formatter and progress.label.rotate do not work.