我是编程新手,现在我想在折线图中为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";
答案 0 :(得分:0)
如果您的X轴应该是数字,那么我建议您使用XY图表而不是Serial,例如:http://www.amcharts.com/javascript-charts/scatter/