高图表日期格式没有微秒 (%f)

HighCharts dateformat does not have microseconds (%f)

本文关键字:日期 格式 高图表      更新时间:2023-09-26

我希望我的HighChart图具有微秒级的准确性。像这样的东西

xDateFormat: '%e/%b/%Y - %H:%M:%S:%f'

但是,我按原样打印了"%f"。.由于这个库使用 PHP 的 strftime 日期格式,我去 http://php.net/manual/en/function.strftime.php 发现这确实没有任何微秒选项。

任何帮助将不胜感激。

尝试使用 %L 而不是 %f

millisecond: '%L'
second: '%S'
minute: '%M'
hour: '%H'