duanpo6079
duanpo6079
2014-12-07 15:15
浏览 248

如何设置HighCharts x轴值

I want to use HighCharts to show plot graph,
and x-axis value can be corresponded to the data value of x
but I don't know how to do this
ex:
I have data

[[201111, 10], [201112, 20], [201301, 50]] 

and make the x-axis value just the data value of x
so the x-axis value can be 201111, 201112, 201301
the plot graph has 3 plots

(201111, 10), (201112, 20), (201301, 50)
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanbi2760
    duanbi2760 2014-12-08 11:50
    已采纳

    You can use tickPositions and return there array of xAxis.

    Example: http://jsfiddle.net/yuw42h6e/

    点赞 评论

相关推荐