Mignon-han opened a new issue #8151: [enhancement]dataset 的每个数据可以支持指定样式
URL: https://github.com/apache/incubator-echarts/issues/8151
 
 
   
   ### One-line summary [问题简述]
   dataset 的单个数据不支持支持指定样式, 尤其是饼图中指定dataset作为数据的时候,我有一个需求是为每一个扇面指定固定的颜色
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:v4.0.4
   + Browser version [浏览器类型和版本]:chrome 65
   + OS Version [操作系统类型和版本]:win 10
   
   
   
   
   
   ### Expected behaviour [期望结果]
   dataset 的每个数据可以支持指定样式
   
   
   ### ECharts option [ECharts配置项]
   ```javascript
   option = {
       legend: {},
       tooltip: {},
       dataset: {
           source: [
               ['score', 'amount', 'product'],
               [{
                   value: 89.3,
                   itemStyle: {
                       color: 'red'
                   }
               }, 58212, 'Matcha Latte'],
               [57.1, 78254, 'Milk Tea'],
               [74.4, 41032, 'Cheese Cocoa'],
               [50.1, 12755, 'Cheese Brownie'],
               [89.7, 20145, 'Matcha Cocoa'],
               [68.1, 79146, 'Tea'],
               [19.6, 91852, 'Orange Juice'],
               [10.6, 101852, 'Lemon Juice'],
               [32.7, 20112, 'Walnut Brownie']
   
           ]
       },
       series: [{
           type: 'pie',
           encode: {
               value: 'score',
               // seriesName:0,
               // itemId: 0,
               itemName: 2
           }
       }]
   }
   ```
   ### Other comments [其他信息]
   http://gallery.echartsjs.com/editor.html?c=xrkcSXiasG&v=1
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to