I'm trying to find a circle packing solution to use with ChartJS - which has a handy Bubble chart which takes x,y, and radius, but doesn't have a packing/treemap type solution.
really like this library as it handles a center of gravity which I think is a really elegant way to make layouts look nice, but doing some quick testing with the static sample (before even using it to feed into ChartJS) I notice adding circles it starts to visually overlap. Is it possible to configure it to apply a scale factor to all the radii to avoid overlap while ensuring fit into the bounds? Alternative would be to get a flag in the returned packer object to alert to their being overlaps and I could rescale the radii and re-run
In my specific scenario I'd know all the radii to start with, and happy to wait for a few passes of the calcs before rendering the chart
(of course my ideal dream would be to have this packing algo implemented as a ChartJS chart type that I just give a list of 'raw' radii to and it calculates the x,y, and scaled-radii by magic!)