标签: javascript datetime highcharts
我想这样做,只有日期,而不是时间,在我的Highcharts图表上显示为标签。我怎么能这样做?
Here's an example jsFiddle.
答案 0 :(得分:17)
您应该设置xAxis.minTickInterval
xAxis: { minTickInterval: 24 * 3600 * 1000 }
jsFiddle 1 jsFiddle 2
我非常鼓励在发布问题之前浏览广泛而有用的highcharts api reference
答案 1 :(得分:1)
http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/xaxis/type-datetime/