ebwaked
Posts: 12
Joined: Tue Mar 23, 2021 1:33 pm

Column Stock chart is grouping bars together

I have 2 charts. They should give quarterly information. The data comes in for 4 bars per year yet it is grouped together as 2 bars per year. We updated from 2.1.8 to 9.0.1 recently so that may have something to do with it.

https://jsfiddle.net/mLw6rncu/

That is the fiddle for what we are experiencing. Now for some reason one of the charts groups the quarterly info in yearly info so instead of 4 bars per year we get 1 bar per year. When I try to re-create that particular error it groups it bi-annually (the volatility study from the fiddle) instead of quarterly.

Like below.

https://imgur.com/dtC1bqE

Please advise.

Thanks!
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Column Stock chart is grouping bars together

Hi ebwaked,

Thanks for contacting us with your question.

If you provide charts with exact number of data that you want to show regardless of the available space and other similar factors, then you can simply disable dataGrouping completely.
Demo:https://jsfiddle.net/BlackLabel/bxmjvn40/
API reference: https://api.highcharts.com/highstock/pl ... ng.enabled

Let me know if it was what you were looking for.
Regards!
Mateusz Bernacik
Highcharts Developer
ebwaked
Posts: 12
Joined: Tue Mar 23, 2021 1:33 pm

Re: Column Stock chart is grouping bars together

Perfect, thanks for the help
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Column Stock chart is grouping bars together

You're welcome! In case of any further questions, feel free to contact us again.
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Stock”