You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/07/01 10:34:58 UTC

[GitHub] [incubator-echarts] karl-ford commented on issue #11788: Set emphasis color same with normal color

karl-ford commented on issue #11788:
URL: https://github.com/apache/incubator-echarts/issues/11788#issuecomment-652339043


   **Actually You can!**
   > When we set the normal color in echarts, we change the `itemStyle.color` in each item of `data`.
   If u want to set the color of highlight status, u can change the `emphasis.itemStyle.color` of the target item.
   
   __The `javascript` looks like that:__
   ```javascript
   ...
   data: [
       {
           value: 75,
           itemStyle: {
               color: '#0B9BEE'
           },
           emphasis: {
               itemStyle: {
                   color: '#0B9BEE'
               }
           }
       },
       {
           value: 25t,
           itemStyle: {
               color: '#E5F6FF'
           },
           emphasis: {
               itemStyle: {
                   color: '#E5F6FF'
               }
           }
       }
   ]
   ...
   ```
   
   
   
   


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

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