[英]how to remove time from Highstock chart at navaigater bar?
我使用Highstock創建圖表,我嘗試從導航欄中刪除時間或減少該點的浮點,但無法刪除
如何刪除它。 附加圖像以獲取更多信息
您可以將datimelabelformats( http://api.highcharts.com/highstock#xAxis.dateTimeLabelFormats )更改為上面發布的dgw,也可以使用xaxis標簽formatter() http://api.highcharts.com/highstock#xAxis.labels.formatter和http://api.highcharts.com/highstock#highcharts.dateFormat()
嘗試將以下內容添加到您的xAxis
定義中
...
xAxis: {
...
dateTimeLabelFormats: {
hour: '%H:%M',
day: '%e. %b',
week: '%e. %b',
month: '%b \'%y',
year: '%Y'
}
}
...
這應該限制輸出。 時間的分辨率為1/1000秒,這就是為什么顯示3個小數的原因。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.