首页 > 解决方案 > LightningChart.js 的 ZoomBandChart 中的 DateTime 数据

问题描述

在 LightningChart.js 中,我需要在缩放带图的 X 轴上显示日期时间,如图所示。它现在以毫秒为单位向我显示日期时间。如何以原始形式显示日期时间?

还尝试了以下代码

const zoomBandChart = dashboard.createZoomBandChart({ columnIndex: 0, columnSpan: 1, rowIndex: 1, rowSpan: 1, axis: chart.getDefaultAxisX().setTickStrategy( AxisTickStrategies.DateTime, // 使用 mutator 设置这个的起始日期Axis' TickStrategy (tickStrategy) => tickStrategy.setDateOrigin(dateOrigin) ) }).setTitle('Scroll')

在此处输入图像描述

标签: lightningchart

解决方案


推荐阅读