yucheng-du opened a new pull request, #21877: URL: https://github.com/apache/echarts/pull/21877
# # Brief Information This pull request is in the type of: - [ ] bug fixing - [x] new feature - [ ] others ### What does this PR do? Sankey charts with ARIA decals now give matching patterns to matching colors across nodes and links. ### Fixed issues - #15513: Sankey decals don't distinguish node colors ## 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. <img width="720" height="350" alt="before" src="https://github.com/user-attachments/assets/9f65676c-1f94-4924-b40d-766270545e02" /> ### 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 `source` or `target` reuse that node's pattern, and links with an explicit solid color use that color's pattern. Level and node `decal` options still override the palette, and `color: 'gradient'` links keep their gradient. <img width="720" height="350" alt="after" src="https://github.com/user-attachments/assets/805d1475-cf16-414d-94e2-94667e4eb050" /> ## Document Info One of the following should be checked. - [x] This PR doesn't relate to document changes - [ ] The document should be updated later - [ ] The document changes have been made in apache/echarts-doc#xxx ## Misc ### Security Checking - [ ] This PR uses security-sensitive Web APIs. ### ZRender Changes - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### 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 - [x] Please squash the commits into a single one when merging. ### 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 checktype` and `npm run lint` pass. Prepared with OpenAI Codex (GPT-6.2 Astra Ultra). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
