【问题标题】:amchart regular numeric scale on category axis in x-axisamchart x 轴类别轴上的常规数字刻度
【发布时间】:2013-11-05 09:15:22
【问题描述】:

我是编程新手,现在我想在折线图中的 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";

【问题讨论】:

    标签: regex numeric amcharts


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2016-11-05
      • 1970-01-01
      • 2012-12-12
      • 2012-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多