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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to