Closed
Description
xAxis.nameGap and yAxis.nameGap should be set automatically given grid.containLabel; this would provide the user with an easy way to display his/her axis name in a way that it doesn't visually interfere with the axis labels
One-line summary [问题简述]
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]:
- Browser version [浏览器类型和版本]:
- OS Version [操作系统类型和版本]:
Expected behaviour [期望结果]
When containLabel is selected, and a name for the xAxis or the yAxis has been specified, these should always fit on the graph's rendering, taking into account the 'rotate' property of the axis labels.
ECharts option [ECharts配置项]
if:
option = {
grid.containLabel = true
xAxis.axisLabel.rotate: someValue
yAxis.axisLabel.rotate: someValue
}
then:
option = {
grid.containLabel : true
xAxis.axisLabel.rotate: someValue
yAxis.axisLabel.rotate: someValue
xAxis.nameGap : auto //should be set automatically
yAxis.nameGap : auto //should be set automatically
}