[docs][charts] Document line mark size customization - #23370
Merged
Conversation
Line marks have no size property on the series or the mark slot, so the size is set with CSS on lineClasses.mark: the r property for the default circle shape, and scale for the path-based shapes. Adds a playground demo that switches between shapes and shows the matching sx snippet.
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
JCQuintas
commented
Aug 18, 2026
JCQuintas
commented
Aug 18, 2026
Co-authored-by: Jose C Quintas Jr <juniorquintas@gmail.com> Signed-off-by: Jose C Quintas Jr <juniorquintas@gmail.com>
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 #20742.
The Lines page never explained how to resize the marks. Follow-up to the discussion in #20721, where the suggested
markElementClasses.rootselector does not work for the default'circle'shape.Verified against the source and in a browser test:
markerSizeonly exists on scatter series) and no usable one on themarkslot:CircleMarkElementhardcodesr={5}after the prop spread, andMarkElementbuilds itsdattribute from a fixed-size d3 symbol, soslotProps.markcannot change either.lineClasses.markdoes work:rfor the default'circle'shape, andscalefor thepath-based shapes, which keeps the mark centered on its data point.rhas no effect on paths, andscaleshifts circles off their data point, so the two are not interchangeable.Adds a
Mark sizesubsection to the CSS section, plus a playground demo that switches between shapes and prints the matchingsxsnippet.