简体   繁体   English

如何设置HighCharts x轴值

[英]How to set HighCharts x-axis value

I want to use HighCharts to show plot graph, 我想使用HighCharts来显示绘图图,
and x-axis value can be corresponded to the data value of x x-axis值可以对应于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 并将x轴值设为x的数据值
so the x-axis value can be 201111, 201112, 201301 因此x轴值可以是201111、201112、201301
the plot graph has 3 plots 地块图有3个地块

(201111, 10), (201112, 20), (201301, 50)

You can use tickPositions and return there array of xAxis. 您可以使用tickPositions并返回xAxis数组。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM