Commit db24028
authored
spec: add circlepacking-basic specification (#2506)
## New Specification: `circlepacking-basic`
Related to #2498
---
### specification.md
# circlepacking-basic: Circle Packing Chart
## Description
A circle packing chart displays hierarchical data as nested circles,
where each circle contains smaller circles representing its children.
Circle size is proportional to node value, and circles are packed
efficiently without overlap. This visualization excels at revealing
hierarchical structures while simultaneously showing quantitative
relationships through area encoding.
## Applications
- File and folder size visualization showing directory hierarchy and
storage consumption
- Organizational structure display with team sizes proportional to
headcount or budget
- Portfolio composition analysis breaking down investments by asset
class and holdings
- Taxonomy or classification hierarchies with proportional
representation of categories
## Data
- `id` (string) - unique identifier for each node
- `parent` (string) - parent node identifier (null for root)
- `value` (numeric) - size value determining circle area (for leaf
nodes)
- `label` (string) - display name for the node
- Size: 20-200 nodes across 2-4 hierarchy levels
## Notes
- Pack circles efficiently using force simulation or specialized packing
algorithms
- Color by depth level or category to distinguish hierarchy levels
- Display labels for larger circles; smaller circles may show labels on
hover
- Scale circle sizes by area (not radius) for accurate visual perception
- Root circle should encompass all children with appropriate padding
---
**Next:** Add `approved` label to the issue to merge this PR.
---
:robot: *[spec-create
workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20585342218)*
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 611b3b5 commit db24028
2 files changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments