olahus
Posts: 1
Joined: Sun May 15, 2022 9:28 pm

Chart with no gaps between categories [or with no categories at all]

Is it possible to create a chart like the following one?
chart.PNG
chart.PNG (8.44 KiB) Viewed 69 times
As you can see there are 3 series - Legend1, xnr and Legend3 - and each of this series with different number of data points. Also, the data points are not being grouped by categories, so the space between columns is the same.

How can I achieve this?
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Chart with no gaps between categories [or with no categories at all]

Hi olahus,

Welcome to our forum and thanks for contacting us with your question!

Please try to set both pointPadding and groupPadding to 0.
Demo:https://jsfiddle.net/BlackLabel/tfgh7Lke/
API reference: https://api.highcharts.com/highcharts/s ... intPadding,
https://api.highcharts.com/highcharts/s ... oupPadding

Let me know if it was what you were looking for.
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”