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
if you have noticed in above code in function chart. There is let
groupSpace = 0.3
let barSpace = 0.05
let barWidth = 0.3
// (0.3 + 0.05) * 2 + 0.3 = 1.00 -> interval per "group"
which will make equation (groupSpace * barSpace) * n + groupSpace = 1
you need to play around this equation for n number of bars