nikunj
Posts: 22
Joined: Tue Nov 20, 2018 7:06 am

Axis Labels with dateTime type

Hello

We want to creating a demo with our requirements. We need to create one chart with variwide and line chart with boost module in android.

For X-Axis and Y-Axis we use datetime type.

We have to use one particular format like
X-Axis - HH:MM
Y-Axis - MM:SS

But once we give zoom on chart so we need to show HH:MM:SS.ZZ also.

So is it possible in any way?

Thank you
Nikunj
bastss
Site Admin
Posts: 1208
Joined: Wed Oct 17, 2018 10:59 am

Re: Axis Labels with dateTime type

Hi nikunj,

After setting the type of axis as 'datetime', most of your requirements Highcharts has set as default, but everything depends on launched data. For example, if in data y value is very big - highcharts will show it as months and after zoom on it will be fall to days, next zoom to hours and so on. More information and examples you can find in API:
https://api.highcharts.com/highcharts/x ... belFormats
https://api.highcharts.com/highcharts/x ... els.format
https://api.highcharts.com/highcharts/x ... .formatter

and also check this demo:

https://jsfiddle.net/Bastss/oxtwag62/

Best regards!
Sebastian Wędzel,
Highcharts Developer

Return to “Highcharts Usage”