Repository navigation
docs: design isolated category scale labels - #12434
Merged
kurkle merged 2 commits intoNov 23, 2026
Merged
Conversation
✅ Deploy Preview for chartjs-docs canceled.
|
kurkle
marked this pull request as ready for review
November 23, 2026 18:48
|
Size Change: 0 B Total Size: 361 kB ℹ️ View Unchanged
|
This was referenced Nov 23, 2026
etimberg
approved these changes
Nov 23, 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 category scale collects the labels it finds in the data by pushing them into the user's
data.labels, which every category axis shares. It also resolves bounds given as labels before the data is parsed, and it accepts only strings as labels. Together these cause four open issues. This pull request is the design for fixing them, written as the OpenSpec changeopenspec/changes/isolate-category-scale-labels/. It adds no code.Pieces, in merge order
beforeLayout()that parses all four bounds, and a spec that pins thesuggestedMin/suggestedMaxre-parse. Completes Category scale: string min and max reorder the labels when the labels come from the data #12430.Co-authored-bycredit to the authors of fix(category): do not modify the user provided labels array #12344 and Fix category scales inferring labels from other scales #12405. It removes_addedLabelsand P1's lookup-only flag, and takes Fix category scales inferring labels from other scales #12405's isolation specs and the stacked case of fix(bar): positioning and category isolation for bar charts with stacked axes #12222. Completes Category scale infers labels from data plotted on other scales #11495 and Array passed as labels option is modified by Chart.js #11893.Parallel and waiting
controller.scatter.js, which Fix appending data while decimation is active #12284 and Draw points beyond scale limits when clip is disabled #12347 also change, but not in the same function. It does not wait for them.Part of #11495, part of #11893, part of #12430, part of #12065.