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

imp: add alternative display mode #290

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

hokolomopo
Copy link
Contributor

This commit adds an alternative display mode for treemap.

In the original mode, leaf nodes are displayed inside the rectangle of their parent, that is itself inside the rectangle of its parent, and so on. With the new mode "headerBoxes" the parent rectangles do not contain their children, but are displayed as headers above them.

The new mode is activated by setting the displayMode option to "headerBoxes" in the dataset.

Examples:
img

image

@kurkle kurkle added the enhancement New feature or request label Jan 29, 2025
@hokolomopo hokolomopo force-pushed the header-box-display-mode branch from 5be45aa to 0ae6126 Compare January 30, 2025 09:26
This commit adds an alternative display mode for treemap. In the
original mode, leaf nodes are displayed inside the rectangle of their
parent, that is itself inside the rectangle of its parent, and so on.
With the new mode "headerBoxes" the parent rectangles do not contain
their children, but are displayed as headers above them.

The new mode is activated by setting the displayMode option to
"headerBoxes" in the dataset.
@hokolomopo hokolomopo force-pushed the header-box-display-mode branch from 0ae6126 to 83e1698 Compare February 6, 2025 12:12
@kurkle kurkle merged commit 0f7d190 into kurkle:main Feb 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants