Amcharts - Y-axis 标题和轴之间的差距
Amcharts - Gap between Y-axis title & axis
我已经尝试设置 autoMargins: true
和 autoMarginOffset: 50
,希望在 Y-Axis 标题和 Y-Axis 之间看到一些 space。然而,当我增加 autoMarginOffset
时,整个图表向右移动。我也试过 marginLeft
属性.
绘图的宽度 div
为 100%。我尝试将其降低到大约 80%,以查看上述属性是否生效。但是,我没有看到我对这些属性的期望。
我可以得到一些关于 属性 使用的指导吗?
恐怕目前无法设置轴标题和轴本身之间的特定间隙。
唯一(不幸的是很难看)的解决方法是在轴标题中放置一个换行符 \n
和一个 non-breaking space。
"valueAxes": [{
// other axis properties
// ...
"title": "Axis title\n "
}]
在 Windows 上,您可以使用 Alt-0160 输入 non-breaking space。在 Mac 上:Opt-Space.
我已经尝试设置 autoMargins: true
和 autoMarginOffset: 50
,希望在 Y-Axis 标题和 Y-Axis 之间看到一些 space。然而,当我增加 autoMarginOffset
时,整个图表向右移动。我也试过 marginLeft
属性.
绘图的宽度 div
为 100%。我尝试将其降低到大约 80%,以查看上述属性是否生效。但是,我没有看到我对这些属性的期望。
我可以得到一些关于 属性 使用的指导吗?
恐怕目前无法设置轴标题和轴本身之间的特定间隙。
唯一(不幸的是很难看)的解决方法是在轴标题中放置一个换行符 \n
和一个 non-breaking space。
"valueAxes": [{
// other axis properties
// ...
"title": "Axis title\n "
}]
在 Windows 上,您可以使用 Alt-0160 输入 non-breaking space。在 Mac 上:Opt-Space.