Ghostbird commented on issue #16749: URL: https://github.com/apache/echarts/issues/16749#issuecomment-2751095864
> > colorAlpha has been removed > > [@Ghostbird](https://github.com/Ghostbird), _colorAlpha_ is working in v.5.6.0 - [Demo](https://echarts.apache.org/examples/en/editor.html?c=treemap-simple&theme=dark&code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANprrLkWxgCeIWxA5GDllgLYCGITANFQoATLmC7Ey1aqilToXDo1hNowIVgCC_WbEGyIYTgGU6AGyVJYAY2CngOZgHM2WaNpt2cG0yAAW4gAYAOgBWAF8BHQoANy5TAFclAEYAyKjrXwhTITZoCT0dGXTqeUVmVXUNLn4CqNiEpQAWWqkIlul2uQUlFTVNACMa4up6xOIANk70MM6AXRa2qKKo0p6KrAAhIfTRpQAmVM6rTOzc_OHKC_RV8r6N6rSL3eIDx-HjrJzXc6v0Zd_YDdlOt7kltgDYM9YAcpq1Yeh5hcZsVETpkVJUdNyPMwgBuIA) But it's true that alpha transparency does not work with color _white_. The underlying issue is that regardless of `colorAlpha: 0.1` or `color(255,255,255,0.1)` echarts treemap fundamentally doesn't support alpha. Follow the instructions I give in my earlier comment, and it's readily apparent. You can insert `itemStyle: { color: 'rgba(255,255,0, 0.1)' }` instead if you're convinced this is a white-only issue. You'll see that instead of alpha blending, the colour is actually blended with pure white. In our software we built a workaround: 1. Lookup the background colour for the treemap 2. Alpha blend between the tile colour and the background colour in code 3. Use the resulting opaque colour for the tile. That's sufficient for our purpose. We don't _need_ actual alpha support. We're not showing the graph on a background image. We just wanted to leverage alpha blending to automatically adapt to a light/dark background. -- 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