-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Support circle as well as rectangle packing #15
Comments
Would it be circles in the last level only? Do you have an example image what it would look like? |
To me it looks like those circles could be much larger in that box? or is the bounding box not visible? |
sample above was from a Tableau visualisation (not 100% what we want but close in look) and yes, there's a non-visible border being used to constrain the circles to give the slightly more vertical orientation (perhaps options to assign preferences for vertical/horizontal layouts would allow more visually pleasing defaults for the clustering as a longer term goal) |
ok. it also looks like that example lays the circles from top to bottom, leaving the top left corner unused. If that smallest circle was placed there, those circles could be bigger. |
finally found a name for this - Packed Circle chart. There are a couple of d3.js samples but I'd prefer to stick with chart.js |
This is probably different enough to deserve its own package. |
in the linked FR at chartjs/Chart.js#11443 I've dropped some sample code that relies on the bubble chart ... problem is getting it to scale so the bubbles stay in the canvas, and the circles actually touch! not sure if there's any logic existing in treemap that combines with the sample algorithm could help make this a reality? |
is it possible to add capability of packing circles (rather than rectangles) into the parent rectangle maintaining relative size and clustered around either the center or an arbitrary point?
The text was updated successfully, but these errors were encountered: