Cortez
Posts: 88
Joined: Fri May 29, 2020 9:41 am

Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

Hi there!
https://jsfiddle.net/Cortez/vcw5qf8y/
Please, help me to figure out why boost mode does not kick in in this setup (considering I have 'seriesThreshold' set to 1, and there are 4 series in total).

Also, why first xAxis label for 'Jan 22' doesn't show up?

Thanks!
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

Hi Cortez,

Good to hear from you again!

The solution to the first one is very simple, but easy to miss at the same time. In order to make Boost work, you have to disable the dataGrouping, which is enabled by default in stockCharts.
You can check whether a chart is boosted by using chart.boosted property (see last line).
Docs reference: https://www.highcharts.com/docs/advance ... ta-options
DEMO: https://jsfiddle.net/BlackLabel/o1c6k47f/

For the second one, the issue for that might be the data (which doesn't start at 1st Jan 00:00, but a few hours later).
To fix that you can:
- change the data,
- set the xAxis.ordinal to false,
- set the xAxis.min to a value before the earliest point in your data, like in the demo below.

DEMO: https://jsfiddle.net/BlackLabel/u8nz5f60/

Do not hesitate to contact us again!
Best regards
Kamil Musiałowski
Highcharts Developer
Cortez
Posts: 88
Joined: Fri May 29, 2020 9:41 am

Re: Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

kamil
That was a haste and clear response as usual!

However, now I have another question: why the boosted version of my chart looks as columns one over another instead of side by side? Is that some kind of boost mode limitation? I wasn't' able to find anything about it in the list of boost mode caveats.
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

Hi there,

You are right - that's a boost limitation that will render the columns on the same pixel, to avoid performance expensive column position calculating.

Regards!
Kamil Musiałowski
Highcharts Developer
Cortez
Posts: 88
Joined: Fri May 29, 2020 9:41 am

Re: Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

kamil

Now one last question on this topic:
https://jsfiddle.net/Cortez/j32qz1hn/

As soon as I add 'useGPUTranslations: true', my columns becomes not aligned with xAxis ticks and the crosshair.
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

The GPU translation property can cause such issues when used with timestamps, because of such small value increments the pixel alignment is a bit off. So it you would like to use it with timestamps, then I'd suggest switching the useGPUTranslations off.

https://api.highcharts.com/highcharts/b ... anslations
Kamil Musiałowski
Highcharts Developer
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

Thank you!

Let me know once you'll need anything else!
Kamil Musiałowski
Highcharts Developer
Cortez
Posts: 88
Joined: Fri May 29, 2020 9:41 am

Re: Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

kamil,
Turns out I still have troubles with this :)

https://jsfiddle.net/Cortez/empkuc1r/

I can not figure out why columns for January and September do not appear on the chart when it is in boost mode.
As you might see - September X-axis tick is partially visible.
That must be somehow related to the x values in my data (because this does not reproduce with a different set of data), but I can not figure out what is wrong with it. It's just a regular month-based intervals.
If I disabled boost mode - then my columns are displayed correctly.
Do you have any idea?
Thanks!
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Stock chart: boost mode doesn't kick in; first xAxis label doesn't show up

Hi there!

I think that it might qualify as a bug, so like always - feel free to post in on our GitHub page. If you could, please reproduce your issue with both of the mentioned datasets so that our team can debug both of the cases.

Thank you and sorry for the inconvenience!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Stock”