echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] Support axis.axisLabel.rotate: 'auto'

Open viking7982 opened this issue 1 year ago • 0 comments

What problem does this feature solve?

When we have axisLabel.interval: 0, we need to set axisLabel.rotate to prevent overlap. The rotation angel usually depends on the element width and number of the labels. Now we need to calculate the rotation manually. It would be more convinient if it could be calculated automatically.

What does the proposed API look like?

xAxis.axisLabel.rotate: 'auto'
yYxis.axisLabel.rotate: 'auto'

or

xAxis.axisLabel.rotate: (labels, dom) => {} // or some other params

viking7982 avatar Oct 11 '24 07:10 viking7982