Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想让它只显示日期,而不是时间,在我的 Highcharts 图表上显示为标签。我怎样才能做到这一点?
这是一个示例 jsFiddle。
你应该设置xAxis.minTickInterval
xAxis: { minTickInterval: 24 * 3600 * 1000 }
jsFiddle 1 js小提琴 2
我强烈建议在发布问题之前阅读大量有用的highcharts api 参考
http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/xaxis/type-datetime/