Reputation: 21
In zoom band chart of Lightning chart JS i need to show date time on axis x of zoom band chart but it showing me mill seconds. kindly refer image to understand my issue. date time showing proper on XY chart but not on zoom band chart. Thanks
Upvotes: 1
Views: 154
Reputation: 2572
Please use ZoomBandChart.getDefaultAxisX() to get the rebellious axis and also use setTickStrategy() to set it to use DateTime ticks.
zoomBandChart.getDefaultAxisX().setTickStrategy(AxisTickStrategies.DateTime)
Upvotes: 2