Repository navigation
feat(sankey): distinguish node and link colors with ARIA decals. close #15513 - #21877
Open
yucheng-du wants to merge 1 commit into
Open
yucheng-du wants to merge 1 commit into
yucheng-du wants to merge 1 commit into
Conversation
…apache#15513 Generated-by: OpenAI Codex (GPT-6.2 Astra Ultra)
|
Thanks for your contribution! Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only. |
This branch has not been deployed
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.
Brief Information
This pull request is in the type of:
What does this PR do?
Sankey charts with ARIA decals now give matching patterns to matching colors across nodes and links.
Fixed issues
Details
Before: What was the problem?
With
aria.decal.show, the sankey series got one pattern for the whole series, so nodes of different colors all had the same diagonal stripes, and a link with an explicit color got no pattern.After: How does it behave after the fixing?
Patterns are now picked from the ARIA decal palette by each node's resolved color. Nodes with the same solid color share a pattern. Links colored by
sourceortargetreuse that node's pattern, and links with an explicit solid color use that color's pattern. Level and nodedecaloptions still override the palette, andcolor: 'gradient'links keep their gradient.Document Info
One of the following should be checked.
Misc
Security Checking
ZRender Changes
Related test cases or examples to use the new APIs
test/ut/spec/series/sankey-decal.test.ts(two new tests; both fail without this change).Merging options
Other information
Checked in Chrome with both the SVG and Canvas renderers: three node colors now give three patterns.
TZ=UTC npm test(196 tests),npm run checktypeandnpm run lintpass.Prepared with OpenAI Codex (GPT-6.2 Astra Ultra).