我想通过类别属性在y轴上显示数据。我通过一个阵列,如我在一些示例中看到的那样如何在HighCharts中的y轴上分类所有数据?
initLapChart() {
hcharts.chart(this.div.nativeElement, {
chart: {
...
},
yAxis: {
categories: ["0:20", "0:30", "0:40", "1:00", "1:15"],
reversed: true,
tickPixelInterval: 50,
gridLineWidth: 1,
...
},
...
}
但它只显示我的前两个值,为什么?
我们需要更多的信息。单个代码片段不起作用,因为您不包括格式化数据的方式或任何其他相关详细信息。 – wergeld