Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pyramid Charts
This pull request adds a new chart type: pyramid charts
This allows the user to show their data in a qualitative diagram
I have tried to make it as flexible as possible to include most use cases
I haven't written any tests for the moment, as I am not familiar with unit tests in Typst. Any help would be appreciated
Features
inner-label.force-inside
parameterAREA-HEIGHT
, the value is a ratio, and gaps are hence proportional to the topmost level's height)REGULAR
(default): Regular pyramid, all levels are the same height, the pyramid is a perfect equilateral triangleWIDTH
: All levels are the same height. The topmost level is an equilateral triangle. Each following level's base width is then proportional to its value (higher value => larger base)HEIGHT
: The pyramid is a perfect equilateral triangle, but each level's height is proportional to its valueAREA-HEIGHT
: The pyramid is a perfect equilateral triangle, but each level's area is proportional to its value (only the height is adapted)Examples
Mode:
REGULAR
Mode:
WIDTH
Mode:
HEIGHT
Mode:
AREA-HEIGHT