Skip to content
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

new diagram type: Treemap #5855

Open
jk2K opened this issue Sep 11, 2024 · 1 comment
Open

new diagram type: Treemap #5855

jk2K opened this issue Sep 11, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram

Comments

@jk2K
Copy link

jk2K commented Sep 11, 2024

Proposal

image

Treemaps display hierarchical (tree-structured) data as a set of nested rectangles. Each branch of the tree is given a rectangle, which is then tiled with smaller rectangles representing sub-branches. A leaf node's rectangle has an area proportional to a specified dimension of the data.[1] Often the leaf nodes are colored to show a separate dimension of the data.

https://en.wikipedia.org/wiki/Treemapping

Use Cases

  • Disk space analyzer
  • file size analyzer

Screenshots

No response

Syntax

No response

Implementation

None

@jk2K jk2K added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram labels Sep 11, 2024
@artfulrobot
Copy link

artfulrobot commented Nov 29, 2024

Ideas:

treemap
  12345 Home
    10000 Downloads
    2000 Documents
      1000 Project A
        700 Strategy
      1000 Other
    345 Pictures
  {indentation, depth*2} {positive integer value} {space} [{id}:]{label}

id labels are not necessary, but could be useful for applying styles.

I think a useful config option would be what to display visibly:

  • label (option to hide)
  • value (option to display using toLocaleString with fixed decimals? option to hide)
  • mouse-over (title attr?) would have to show details of that item.
  • ideally, clicking a parent would regenerate the chart with that parent as the top level. There would need to be a 'back' button.

[I had a play]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram
Projects
None yet
Development

No branches or pull requests

2 participants