如何将日期时间刻度上的 x 轴标签从边缘进一步移动?

How to move the x-axis labels on a datetime scale further from the edges?

我有这张图表:https://playground.anychart.com/D7okDBpO/2

我希望绘图和 x 轴标签在左右边缘有一些填充(原因之一是最后一个 x 标签现在甚至不完全可见),类似于呈现具有顺序刻度的图表。对于我设法做到这一点的情节:

series.left(30);
series.right(30);

但我找不到 x 标签的解决方案。我尝试过的:

// This doesn't work because it moves both first and last label
chart.xAxis().labels().offsetX(-30);

// This doesn't work because it moves all the labels, even the ones in the middle
chart.xAxis().labels().padding().left(50);

您是否正在寻找此设置:

chart.left(20);
chart.right(20);

https://playground.anychart.com/miB1VAbq ?