apache / echarts

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

[Feature] Set x-axis ticks at the left of each bar with echarts library when the x-axis type is time. #20069

Open akopanskiy opened 3 months ago

akopanskiy commented 3 months ago

What problem does this feature solve?

I want to show each x-axis tick at the left of the bar, not at the center, but I'm not sure which setting can help me with this and not sure that such a setting exists. The x-axis type is time.

What does the proposed API look like?

Perhaps such a solution already exists, but unfortunately I did not find it. So I will be grateful for your help.

helgasoft commented 3 months ago

could be accomplished with an additional (invisible) bar series - Demo 📌 please close issue if problem solved.

akopanskiy commented 3 months ago

Thanks, it works. But the catch is that there are four types of bars, for instance here https://echarts.apache.org/examples/en/editor.html?c=bar-label-rotation. If you change the number of bars, then they are not placed evenly between the marks after that.