100pah commented on issue #10172: Axis name padding does not account for axis labels URL: https://github.com/apache/incubator-echarts/issues/10172#issuecomment-477199710 > It would remain the same as the current padding option Do you mean the [axisLabel.margin](https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.axisLabel.margin) or [nameGap](https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.nameGap) or [axisLabel.padding](https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.axisLabel.padding) here ? Because I think there is no option named `padding` for `axis name` currently. For the options above: [axisLabel.margin](https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.axisLabel.margin) is not a good name (by historical reason) and might bring misleading to users. It actually means the gap between the axis label and the axis line. [axisLabel.padding](https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.axisLabel.padding) indeed only consider itself only without the neighboring elements. It is implemented the same as other labels follow the "rich text" module. ECharts does not have an overall layout system as DOM did in Normal Flow, Floats, etc., which layout DOM elements by the margin/padding automatically without overlap. The layout strategies in echarts are case by case, meeting each chart/component requirements. That makes the code easy to implement but probably less customizable and intelligent. Go back to this issue. I think what we can do is: + Enhance the axis label and tick layout strategy to avoid overlap and more customizable and meet some certain requirements (especially in time axis) + Since the option [grid.containLabel](https://ecomfe.github.io/echarts-doc/public/en/option.html#grid.containLabel) already makes the grid auto located considering the axis label without overflow the edge of the echarts area, we probably also need to take axis name into account in this layout (current not consider axis name yet). + For long axis name, indeed it needs a more intelligent auto adjustment when it will overflow the container.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
