Open Meldanen opened 5 years ago
This is not a bug. You should probably need to check if this is the first data of a different year in formatter.
Hi Ovilia,
Then assume that the format is in months. In this case if two data points are in the same month, why does it not display duplicate labels (as it does in the case of years)?
Cheers, Alex
I think it makes sense that ECharts do the enhancement to hide duplicate labels in the future. In the meanwhile, you may use something like this in your case: https://jsfiddle.net/ovilia/k1bsuteo/6/
I suppose it will have to do. Thank you for providing a temporary solution. Do you have an estimate of how long this enhancement will take to be implemented?
Thanks, Meldanen
Hi there, this feature would be very helpful for me also.
Best regards, Sergios.
Hi @100pah ,
regarding your comment on https://github.com/apache/incubator-echarts/pull/9977 do you have an update on this ?
Thank you for your time and effort.
Best regards, Sergios.
is there any similar approach for Y axis value? the example from your sample seems not to work with Y axis
General Questions
Issue Type
Issue Details
I want to use a year format on a timeAxis, but formatting the axisLabel ends up with duplicate labels.
Expected Behavior
There shouldn't be any duplicate labels if it's a time axis.
Current Behavior
The points seem to be plotted and formatted afterwards. This means that points in the same year, are all formatted to the same label.
Online Example
Fiddle link: https://jsfiddle.net/5jyu4t6w/5/
Topics
Anything Else We Need to Know
Setting the axis type to 'category' is something we considered but it's not correct
Environment
ECharts version;ECharts 版本: Latest version (4.2)
[ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}