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/10/29 11:31:22 UTC

[GitHub] jeevanyue opened a new issue #9294: 希望dataset.source能够与series.data一样,根据xAxis.data序列绘图

jeevanyue opened a new issue #9294: 希望dataset.source能够与series.data一样,根据xAxis.data序列绘图
URL: https://github.com/apache/incubator-echarts/issues/9294
 
 
   ### One-line summary [问题简述]
   使用dataset组件时,即使提前设置 xAxis.data,dataset.source 并不会匹配到xAxis.data的值,即按照xAxis.data序列绘图,而是按照dataset.source自己的序列绘图。
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:v4.2.0-rc.2
   + Browser version [浏览器类型和版本]:safari 11.1.2
   + OS Version [操作系统类型和版本]:macOS
   
   ### Expected behaviour [期望结果]
   希望dataset.source 能够与series.data一样,与xAxis.data的值相匹配,按照xAxis.data序列绘图。虽然可以通过数据预处理解决这个问题,但还是希望能够dataset.source更好用。
   
   ### ECharts option [ECharts配置项]
   ```javascript
   option = {
       legend: {},
       tooltip: {},
       dataset: {
           dimension: 
               ['product', '2015', '2016', '2017'],
           source: [
               ['Matcha Latte', 43.3, 85.8, 93.7],
               ['Milk Tea', 83.1, 73.4, 55.1],
               ['Cheese Cocoa', 86.4, 65.2, 82.5],
               ['Walnut Brownie', 72.4, 53.9, 39.1]
           ]
       },
       xAxis: {
           type: 'category',
           data: ['Milk Tea', 'Cheese Cocoa', 'Matcha Latte','Walnut Brownie']
       },
       yAxis: {},
       series: [
           {type: 'line'},
           {type: 'line'},
           {type: 'line'}
       ]
   };
   ```
   
   ### Other comments [其他信息]

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