muromvn
Posts: 2
Joined: Wed Aug 03, 2022 9:18 am

How to set min datetime in column chart?

I try to set min xAxis datetime in column chart, there isn't anything show up!
Does column type support min xAxis?

Code: Select all

    
    xAxis: {
       	type:"datetime",
        tickInterval: 1000 * 60 * 60 * 24 * 365,
       	min:1640970000000,
        crosshair: true
    }
 
https://jsfiddle.net/dzt2chvu/3/
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: How to set min datetime in column chart?

Hi there,

Welcome to our forum and thank you for contacting us. In general your config seems to be fine. I would suggest using sorted data, because that might cause some unexpected chart behaviour.

Let me know if that worked!
Best regards
Kamil Musiałowski
Highcharts Developer
muromvn
Posts: 2
Joined: Wed Aug 03, 2022 9:18 am

Re: How to set min datetime in column chart?

kamil.m wrote: Wed Aug 03, 2022 1:55 pm Hi there,

Welcome to our forum and thank you for contacting us. In general your config seems to be fine. I would suggest using sorted data, because that might cause some unexpected chart behaviour.

Let me know if that worked!
Best regards
Thank you, it's worked
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: How to set min datetime in column chart?

Love to hear that!

In case of any other questions, feel free to contact us anytime,
Regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”