0

我是编程新手,现在我想在折线图中的 categoryAxies 上给出自定义标签。

但是该标签应该是常规的(例如 0,50,100,150)。

这是我的数据格式。

59.0472,0.0318 
69.071,0.0271 
72.0913,0.0271 
81.0674,0.0334 
81.0734,0.0382 
83.0596,0.0717 
83.0894,0.0605 
85.0817,0.035 
85.1053,0.0287 
86.0675,0.0318 
87.1001,0.0287 
90.6657,0.0382

我想要x轴0, 50 , 60,等。

我还在下面提到了类别轴代码

var categoryAxis = chart.categoryAxis; 
categoryAxis.parseDates = false; 
categoryAxis.autoGridCount =false;

categoryAxis.dashLength = 1; 
categoryAxis.gridCount = 6; 
categoryAxis.gridAlpha = 0.15; 
categoryAxis.minorGridEnabled = true; 
categoryAxis.axisColor = "#DADADA";
4

1 回答 1

0

如果您的 X 轴应该是数字,那么我建议您使用 XY 图表而不是串行图表,例如:http ://www.amcharts.com/javascript-charts/scatter/

于 2013-11-07T06:23:43.527 回答