Raman-Katiyar opened a new pull request, #21715: URL: https://github.com/apache/echarts/pull/21715
<!-- Please fill in the following information to help us review your PR more efficiently. --> ## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? Retains string type for raw categories in visualMap during evaluation to prevent precision loss on large integer strings. ### Fixed issues - #21714: Large string categories fail to map visually due to number conversion precision loss. ## Details ### Before: What was the problem? When large integer strings (e.g., '6053822903760037657') are passed as categories in visualMap, converting them to numbers causes precision loss, causing visual mapping and rendering to fail. <!-- ADD SCREENSHOT HERE IF APPLICABLE. --> ### After: How does it behave after the fixing? The raw string type is preserved during visualMap evaluation in applyVisual, maintaining exact category matching and rendering the chart items correctly. <!-- ADD SCREENSHOT HERE IF APPLICABLE. --> ## 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. <!-- PLEASE CHECK IT AGAINST: <https://github.com/apache/echarts/wiki/Security-Checklist-for-Code-Contributors> --> ### ZRender Changes - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs test/test_bug21714.html ### Merging options - [ ] Please squash the commits into a single one when merging. ### Other information -- 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]
