【发布时间】:2017-10-13 15:05:00
【问题描述】:
我只想在 x 轴上旋转第一个和最后一个标签。 我有以下格式化功能:
formatter() {
if (this.isFirst || this.isLast) {
// First or last label here
var rotatedValue = this.value.doRotation(); // TODO here
return rotatedValue;
} else {
return this.axis.defaultLabelFormatter.call(this);
}
},
我做了一项研究,但没有发现(如何调用一些旋转功能)。 我使用基本的折线图。
【问题讨论】:
-
您使用哪种图形/图表?线?酒吧?
-
我使用折线图。
标签: javascript charts highcharts rotation axis