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 2021/09/29 09:00:19 UTC

[GitHub] [echarts] leekbillow commented on issue #15805: 图例颜色能否单独设置,不与数据项关联?

leekbillow commented on issue #15805:
URL: https://github.com/apache/echarts/issues/15805#issuecomment-929979797


   > 可以的,配置项:[legend.data.itemStyle](https://echarts.apache.org/zh/option.html#legend.data.itemStyle)
   > 
   > ```
   >   legend: {
   >     data: ['男'],
   >     itemStyle: {
   >       color: 'red'
   >     }
   >   },
   > ```
   
   统一设置图例颜色是可以的,但是能否动态设置呢?function我试过不支持,设置color数组的话会被数据项的颜色覆盖


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