echarts
echarts copied to clipboard
[Feature] How to increase the gap between y-axis Ticks in case of large no. of values on y Axis ?
What problem does this feature solve?
In case of large no. of values on y axis, the gap between axis ticks reduce. Because of this the axis label names are being cut.
What does the proposed API look like?
yAxis: { axisTicks { gap: } }
Property eg. gap, within AxisTicks in yAxis to add a custom gap length
I made a function that receives the labels to be displayed on the axis and obtained the space occupied by the label according to its position, font and font size