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 2018/06/01 07:08:05 UTC

[GitHub] pandashuai opened a new issue #8446: echarts k线图 怎么设置图例不同颜色

pandashuai opened a new issue #8446: echarts k线图 怎么设置图例不同颜色
URL: https://github.com/apache/incubator-echarts/issues/8446
 
 
   我的配置如下:
   ```
   option = {
       color: ['red', 'blue'],
       legend: {
           data: ['第一个', '第二个']
       },
       xAxis: {
           data: ['2017-10-24', '2017-10-25', '2017-10-26', '2017-10-27']
       },
       yAxis: {},
       series: [{
           type: 'k',
           name: '第一个',
           data: [
               {
                   value:[20, 30, 10, 35],
                   itemStyle: {
                       color:   'red',
                       borderColor: 'red'
                   }
               },
           ]
       },
       {
           type: 'k',
           name: '第二个',
           data: [
               '-',
               {
                   value:[20, 30, 10, 35],
                   itemStyle: {
                       color:   'blue',
                       borderColor: 'blue'
                   }
               },
           ]
       }]
   }
   ```
   
   图例的颜色修改不了
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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