lightningchart - 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')
解决方案
推荐阅读
- reactjs - AWS Amplify 和 Next.JS with GraphQL Server Error No current user from getStaticPaths
- javascript - npm 错误!启动 Angular 前端应用程序时
- swift - 如何为捆绑包设置主体类
- tensorflow2.0 - 将 Sugartensor 库转换为 Tensorflow 2
- sql - 列列表中指定的列多于交叉应用
- java - Spark过滤器在不同数据类型上嵌套json
- frontend - Shopify:当购物车在屏幕尺寸小于 14 英寸的设备上包含超过 2 件商品时,不会出现查看购物车按钮
- mysql - 从 MSSQL 到 MySQL 的正确语法
- plot - 是否有将样条曲线添加到条件逻辑回归中的 R 代码?
- docker - 使用指定的 CUDA 工具包和 pytorch 创建 docker 镜像