0

I noticed the answer in Custom DateTime in X axis in Lightningchart JS, but it report error "AxisTickStrategies.DateTime is not a function" in lightningchartV2.2.1. also, since AxisTickStrategies.DateTime is not a function, how can i show a full date axisx label for a series using a DateTime axis ?

KeplerJoe
  • 7
  • 3

1 Answers1

0

Please have a look at official LCJS Interactive Examples, and search for "datetime"

For example, https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-0020-dateTimeAxis.html

This is the bare minimum required code - please refer to the examples for extended modification.

chart.getDefaultAxisX()
    .setTickStrategy(
        // Use DateTime TickStrategy for this Axis
        AxisTickStrategies.DateTime,
    )
Niilo Keinänen
  • 2,187
  • 1
  • 7
  • 12