I am using ios-charts library.
I would like to group my inverter values so that each year is one group. Unfortunately, the number of monthly values per year may vary
I've tried Rajan Twanabashu solution, but it was almost the good one. Maybe it has changed since, I don't know.
Here's what I've done, after I found the groupWidth function in the BarDataChart file from Charts.
groupWidth function declaration
let groupSpace = 1 - n * (barWidth + barSpace)
Hope it could help