Repository navigation
fix(charts): pie legend, distinct colours, donut sized to the pane (#1160) - #1177
Merged
Merged
Conversation
…1160) The pie had a fixed 100 px radius, labels only for up to 8 slices and five colours cycled over up to 50 slices. The donut now fills the pane, a legend lists colour, label, value and share (beside it when wide, below when narrow), and hovering a slice or a legend row highlights both. Pie defaults to Top 8 with Other. Further colour rounds are tinted, so slices stay distinct, and slice titles show only shares of 5 % or more in a contrasting colour.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #1160
Changes
LayoutBuilder) instead of a fixed 100 px, so it fills the pane at 600 px and 1 600 px wide.ChartData.pieTopN). Top N choices now include 8.Not in this PR
🤖 Generated with Claude Code