You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2022/04/05 13:55:54 UTC

[GitHub] [echarts] GuruCharan12 opened a new issue, #16837: [Bug] Treemap itemstyle color set is not working

GuruCharan12 opened a new issue, #16837:
URL: https://github.com/apache/echarts/issues/16837

   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/gurucharan1/pen/rNpJewq?editors=0010
   
   ### Steps to Reproduce
   
   option = {
     series: {
       type: "treemap",
       data: [{
         name: "Food",
         children: [{
           value: 3,
           name: "Fruit",
           
         }, {
           value: 9,
           name: "Meat",
         }, {
           value: 19,
           name: "Veggies",
         }]
       }],
       itemStyle: {
         color: "rgba(215, 49, 49, 1)"
       }
     }
   }
   
   ### Current Behavior
   
   We have set color for treemap using itemstyle color property. It is not being respected.
   
   ### Expected Behavior
   
   Treemap should be plotted with color set in itemstyle color property
   
   ### Environment
   
   ```markdown
   - OS:Windows
   - Browser: Chrome
   - Framework:Angular
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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: dev-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org


Re: [I] [Bug] Treemap itemstyle color set is not working [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #16837: [Bug] Treemap itemstyle color set is not working
URL: https://github.com/apache/echarts/issues/16837


-- 
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-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Treemap itemstyle color set is not working [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #16837:
URL: https://github.com/apache/echarts/issues/16837#issuecomment-4058017851

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Treemap itemstyle color set is not working [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #16837:
URL: https://github.com/apache/echarts/issues/16837#issuecomment-4007824688

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Treemap itemstyle color set is not working [echarts]

Posted by "nlafleur (via GitHub)" <gi...@apache.org>.
nlafleur commented on issue #16837:
URL: https://github.com/apache/echarts/issues/16837#issuecomment-1978336862

   So this means I can't color the nodes using a "callback function" the same way you can color the bar chart items for example? [https://echarts.apache.org/en/option.html#series-bar.itemStyle.color](https://echarts.apache.org/en/option.html#series-bar.itemStyle.color)
   
   Will this become an option in the future?


-- 
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-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] pissang commented on issue #16837: [Bug] Treemap itemstyle color set is not working

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #16837:
URL: https://github.com/apache/echarts/issues/16837#issuecomment-1091036316

   Seems to be a unexpected behavior. You can use `series.color` as a workaround
   
   ```ts
   option = {
     series: {
       type: 'treemap',
       data: [
         {
           name: 'Food',
           children: [
             {
               value: 3,
               name: 'Fruit'
             },
             {
               value: 9,
               name: 'Meat'
             },
             {
               value: 19,
               name: 'Veggies'
             }
           ]
         }
       ],
   
       color: ['rgba(215, 49, 49, 1)']
     }
   };
   ```


-- 
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: dev-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org