echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open akopanskiy opened this issue 1 year ago • 2 comments

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.

akopanskiy avatar Jun 24 '24 16:06 akopanskiy

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

helgasoft avatar Jun 25 '24 02:06 helgasoft

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.

akopanskiy avatar Jun 26 '24 12:06 akopanskiy