fuchunhui opened a new issue #16749:
URL: https://github.com/apache/echarts/issues/16749


   ### Version
   
   5.3.1
   
   ### Link to Minimal Reproduction
   
   https://stackblitz.com/edit/js-xudcjr?file=index.js
   
   ### Steps to Reproduce
   
   use link or copy the following content.
   ```
   option = {
     series: [
       {
         type: 'treemap',
         label: {
           color: 'black',
         },
         data: [
           {
             name: 'nodeA',
             value: 10,
             color: ['red', 'pink'],
             children: [
               {
                 name: 'nodeAa',
                 value: 4,
                 itemStyle: {
                   color: 'cyan',
                   colorAlpha: 0.3, // not work
                 },
               },
               {
                 name: 'nodeAb',
                 value: 6,
                 itemStyle: {
                   color: 'rgba(0, 255, 255, 0.3)', // this is right
                 },
               },
             ],
           },
           {
             name: 'nodeB',
             value: 20,
             children: [
               {
                 name: 'nodeBa',
                 value: 20,
                 children: [
                   {
                     name: 'nodeBa1',
                     value: 20,
                   },
                 ],
               },
             ],
           },
         ],
       },
     ],
   };
   ```
   
   ### Current Behavior
   
   
![image](https://user-images.githubusercontent.com/29879262/160117047-cc94f3d8-cf9a-4f3f-8ee9-c1446d0b0df0.png)
   `nodeAa` and `nodeAb` are different color.
   
   ### Expected Behavior
   
   
![image](https://user-images.githubusercontent.com/29879262/160117518-7ade5429-afc4-444a-a3fa-ce4aebc9177d.png)
   the two are same color.
   
   ### Environment
   
   ```markdown
   - OS: macOS Catalina
   - Browser: Chrome 99.0.4844.83
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   
[style.ts#L159](https://github.com/apache/echarts/blob/d3dbf1215a0ae0c5075efffb10b17fe4de37582c/src/visual/style.ts#L159)
   
   maybe it's here.


-- 
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]

Reply via email to