jakubdev
Posts: 5
Joined: Fri Sep 10, 2021 12:26 pm

Don't reserve space for hidden points

Hey,

I need to show data in waterfall that contains for example 6 points and last one is sum of all, but need to hide 1 point and even tho that its hidden it will be calculated to sum. I already achieved it with series.data[index].visible, but after hidding chart make empty space for this point and show his label. Is there a solution to make it happen or should I think about hacky solution to make it work.
Attachments
example with hidden point
example with hidden point
2021-09-17_12h49_03.png (70.98 KiB) Viewed 709 times
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Don't reserve space for hidden points

Hello,

Thanks for contacting us with your question!

I think you need to remove the data.name for the hidden point.
Let me know if that worked for you, othervise please reproduce the issue in an online editor that I could work on!

Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
jakubdev
Posts: 5
Joined: Fri Sep 10, 2021 12:26 pm

Re: Don't reserve space for hidden points

Thanks, works like a charm.
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Don't reserve space for hidden points

That's great to hear! In case of any further questions, feel free to contact us again.
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Stock”