Hi, For more please to understand, please use English in our mailing list.
You can use axisLabel.formatter [1] to control the unit of labels. For time axes, the "Cascading Templates" enables you to set the formatter for multiple levels. You can set the millisecond formatter to be '{HH}:{mm}:{ss}' so that no millisecond is displayed. [1] https://echarts.apache.org/en/option.html#xAxis.axisLabel.formatter Thanks *Ovilia* On Mon, Jan 24, 2022 at 10:25 AM zhengxu zhu <zzx13829333...@163.com> wrote: > 您好,工程师: > > > > 在使用时间轴的example时,请问最小的单位如何从“date”变为“seconds”?该链接为Examples - Apache ECharts > <https://echarts.apache.org/examples/zh/editor.html?c=dynamic-data2> > > > > 我在使用过程中发现,如果将每一次时间增长的长度设为一小时或是一分钟,那么数据将会堆叠到一起,例如: > > 具体而言,同样是自定的newDate,为何返回的value字符串只能使用fullyear,month以及date? > > 因此,我希望了解如何改变最小时间单位。我已经尝试过一些方法,也仔细搜寻过教程和论坛,但暂时没有关于该问题的收获。希望能够在此得到你们的帮助和启发。 > > > > 朱政谞 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org > For additional commands, e-mail: dev-h...@echarts.apache.org