Mapantz
Posts: 29
Joined: Tue Nov 05, 2019 12:24 pm

Possible columnrange bug

I've only just spotted this on my graphs today..

I was using the latest highstock.js and highcharts-more.js and saw that just one chart wasn't working. It was a standard columnrange chart. I went back, one-by-one trying the previous versions of those files, and got to v10.2.1, and the chart worked again. v10.3.0 and beyond, the chart stops working.

I had a quick look at the code and saw nothing obvious, then I removed:

Code: Select all

     
      min: '0',
      max: '100'
from:

Code: Select all

   
    yAxis: [{
          }],
    
The chart started working again without a min and max being set.

Is it a bug? It seems strange that everything was ok in 10.2.1

Regards.
jedrzej.r
Posts: 725
Joined: Tue Jan 24, 2023 11:21 am

Re: Possible columnrange bug

Hi!

Thanks for reaching out to us with your problem.

If you look closely on min & max properties in Highcharts API, you'll notice that it takes number as value. In your configuration you've set it as string; after removing qoutation marks, it seems to work just fine.

Demo: https://jsfiddle.net/BlackLabel/o3sg1wv5/

API:
https://api.highcharts.com/highstock/yAxis.min
https://api.highcharts.com/highstock/yAxis.max

Let me know if the problem still occurs after making these changes.
Best regards!
Jędrzej Ruta
Highcharts Developer
Mapantz
Posts: 29
Joined: Tue Nov 05, 2019 12:24 pm

Re: Possible columnrange bug

Hi

Thanks for the reply!

It did fix it.

Is this something that changed recently? As I mentioned, it worked on previous versions.
jedrzej.r
Posts: 725
Joined: Tue Jan 24, 2023 11:21 am

Re: Possible columnrange bug

I've tried to look for this change at the changelog, but it seems that this fix wasn't signifcant enough to make it to the list. I would recommend setting property values as they are stated in API, like in this case where "min" can take number or null as a value.

In case of any other questions related to Highcharts, feel free to ask anytime.
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Usage”