wqzwh commented on issue #7751: dataset中使用key-value形式的数组,当key为数字时,其数据无法显示
URL: 
https://github.com/apache/incubator-echarts/issues/7751#issuecomment-396025864
 
 
   官方有例子,是不是你用错了
   
   dataset: {
           // 这里指定了维度名的顺序,从而可以利用默认的维度到坐标轴的映射。
           // 如果不指定 dimensions,也可以通过指定 series.encode 完成映射,参见后文。
           dimensions: ['product', '2015', '2016', '2017'],
           source: [
               {product: 'Matcha Latte', '2015': 43.3, '2016': 85.8, '2017': 
93.7},
               {product: 'Milk Tea', '2015': 83.1, '2016': 73.4, '2017': 55.1},
               {product: 'Cheese Cocoa', '2015': 86.4, '2016': 65.2, '2017': 
82.5},
               {product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 
39.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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to