本文介绍了Highcharts - 删除datetime xaxis类型的日期之间的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我希望这样做,只有日期,而不是时间,在我的Highcharts图表上显示为标签。我该怎么做? 以下是一个示例jsFiddle。 $ b您应该设置 xAxis.minTickInterval $ b a> xAxis:{ minTickInterval:24 * 3600 * 1000 } jsFiddle 1 jsFiddle 2 我高度鼓励在发布问题之前浏览广泛而有用的 highcharts api参考 I'd like to make it so that only dates, not times, are displayed as labels on my Highcharts chart. How can I do that?Here's an example jsFiddle. 解决方案 you should set the xAxis.minTickIntervalxAxis: { minTickInterval: 24 * 3600 * 1000}jsFiddle 1jsFiddle 2I highly encourage going through the vast and useful highcharts api reference before posting questions 这篇关于Highcharts - 删除datetime xaxis类型的日期之间的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-17 07:02