const lastTick = this.xAxis[0].ticks[this.xAxis[0].tickPositions.length - 1];
const { width } = lastTick.label.getBBox();
const { chartWidth } = this;
lastTick.label.attr({ x: chartWidth - (0.7) * width });
这是highcharts代码。我想要{ width }
,的意思{ chartWidth }
。