daidr commented on issue #19275: URL: https://github.com/apache/echarts/issues/19275#issuecomment-3144210596
I think it is really not elegant to implement rounded corners by traversing the dataset every time the legend changes, and there are edge cases: Imagine if I set the border radius to 10px, but the height of the topmost bar in the stacked chart is not enough 10px, then this solution's rendering result is problematic: [demo](https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&code=G4QwTgBAzgpmCWMoQLwQNoCgIQN7ZwgBMQAXEALgwEYAmABgBoIGmJqBWNgDjYHY21aoIDM9ALqMCOUgE8ADjCoByAEbhlUwtHIBjANYqQyggF8teacTKUabWs2rNlAWk0Q2r9xIsyFSiDUNXx0QAyMTHHMCfG0Scip0MWc3ZntBT1SPSSs5RRV1ME0rKD1DQOMzC1jCeNt0J0Cs9MdM7xztPICgopDSsPK1SIhonBqcOsThZgZHLjSU93n2H1z_AuCSsoLh00xxAG5MTF0AewA7UtCDAElzgDNT1DxTI8fIAAoAGxhSCHhnvQDv8IAAeaBwRBQdASAB0dVhP3OAHNSAALYEAakx8AAlJYcO8IN9fhAAFaA4EU8GwBBIREwFHorGYsn48YQM6XP79AwAORAAFsYM9aVD0GTxLDefojtp4PdiQBCGUC4Xsqw4LmkeDnACuMDlhD28sVHxVZTuj3QqqFMHEGu0OBlVtONrKavtzw52hlAGVyGBSIkOk7nWUAKLnIghzUjI1RKxcq66x6iy0PN224WHJMXK51UWQpASqV1dDwXOm4mFgBktes5AgSpQaC8jqdCuJqdO0rKAfApAr4lQaH1Xy-HbDPb7AwHQeHzzJCeNcZnMqjREXaGXVhNI0weyJJL-ALQQJBNOLUAZTIxEGxeIJnPzf0LaDFJcr8JsRuTp8zdMBldG1r2HWcDCrCBjx-P4KXPKkwQhOloW_BEkVRe9sTZZ8tVff4 oHnP40HXftAyHSVRxIld_wIzdnlIgZN1LKj_ho_DSFOeQACFTjAIg4AYqB6IAfhYegICoIErAAehkiAbkVWRTj1YgLmUP4AHcQHOP5VD4gSwAAJRAIh4D1ZAyAgfTSE4wVmDJCyeVJeA_k46yRXoPNuWs05bNOQVeP4wSSMI8iIDEhhJI8Fdy0otAfQgUAvgNKg4tDeVSBgQUA1kH4qESnB9OC4zTPMqBEk4niDLgZgqqCwzmBsuyGtq3z_MCmqwHEON9yiI09j2TAuJ1C5vQIAAPABBCb4Aq3CIC6FRdDIGBkT42RijiGxEmUABZdTnAAFQNdxlAAdRgIgzqOtE9TOgAxBAzr9MgXr1c5lB6qILFkGa5oKtZ8kCZLTqqAhPygQ8DiAA). <img width="1401" height="1019" alt="Image" src="https://github.com/user-attachments/assets/28d7ecba-39ac-4b61-a53d-f2d2732da1bf" /> I wonder if it's possible to crop out the correct border radius in a way similar to a mask? However, considering that the labels are attached to the bars, this might affect the rendering of the labels. -- 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: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org