ninjacoder77 opened a new issue, #21090: URL: https://github.com/apache/echarts/issues/21090
### What problem does this feature solve? Currently, there's no way to customize the border of the small color blocks inside a `visualMap` of type `piecewise`, especially in geo charts. I want to visually highlight or separate the blocks (e.g. with a dark border around each block to improve visibility) to improve clarity for end users. I've tried options like `borderColor`, `itemStyle`, and others, but they apply only to the outer container or background, not to each individual color block. This limitation impacts map visualizations where colors are similar or gradients are close, borders would make each piece more distinguishable. I'm still relatively new to ECharts, but I couldn't find any way to do this in the documentation or GitHub issues. it seems this level of customization is not yet supported. <img width="596" height="205" alt="Image" src="https://github.com/user-attachments/assets/ac465db2-fe10-4395-8941-14efe3a65db4" /> ### What does the proposed API look like? I’m not sure how this could be implemented exactly, but maybe it could work by allowing legend-specific styles (like border color) inside each piece. example: ```ts visualMap: { type: 'piecewise', pieces: [ { min: 0, max: 1000, color: '#f6efa6', legendBorderColor: '#333', // new property }, // ... ] } ``` -- 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]
