Repository navigation
docs: design the legend rework - #12482
Merged
Merged
Conversation
kurkle
marked this pull request as ready for review
November 24, 2026 17:25
|
Size Change: 0 B Total Size: 362 kB ℹ️ View Unchanged
|
✅ Deploy Preview for chartjs-docs canceled.
|
Member
|
@kurkle what do you think about converting the legend plugin to typescript before or after this work? |
Member
Author
Good question. Probably during. I'll add it to the plan. |
etimberg
approved these changes
Nov 24, 2026
This was referenced Nov 24, 2026
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.
The legend works out its layout three times (when it is fitted, when its hit boxes are placed, and while it is drawn), and items go missing, overlap, crash or cannot be clicked wherever those disagree. This design makes the hit boxes the one layout that hit-testing and drawing read, lands the open legend fixes first, and fixes the click, hover, hide and typing problems around the legend.
Design only:
openspec/changes/rework-legend/(proposal, specs, design with the pieces table, tasks). No code.Pieces, in order
Patch releases (4.6.x):
onClickonce (legend and chart)maxWidth/maxHeight4.7.0:
labels.boxYOffset(#12242 renamed)LegendItem.textDecoration,labels.decorationWidthpaddingParallel work and waits
Part of #12345, #12196, #11850, #12066, #11280, #12067, #11594, #11538, #10442, #11666, #12144, #11877, #10624, #10384, #11824, #11805, #10882, #11801, #11884, #11692, #11725, #11571, #11941, #11740, #10120 and #11949. design.md also accounts for every other open legend issue: fixed on master, fixed by an open PR (#11978 by #12331), possible today, or a non-goal.