jeevanyue opened a new issue #9293: dataset指定dimensions后,仍默认dataset.source的第一行/列为维度信息 URL: https://github.com/apache/incubator-echarts/issues/9293 ### One-line summary [问题简述] 即使在dataset指定了 dimensions ,如果 dataset.source 的数据为字符型,echarts 虽然不会自动从 dataset.source 的第一行/列中获取维度信息,但是还会默认 dataset.source 的第一行/列为维度信息,不取第一行/列的值。 ### Version & Environment [版本及环境] + ECharts version [ECharts 版本]:v4.2.0-rc.2 + Browser version [浏览器类型和版本]:safari 11.1.2 + OS Version [操作系统类型和版本]:macOS ### Expected behaviour [期望结果] 如果在dataset指定了 dimensions ,则即使 dataset.source 的数据为字符型,也不将dataset.source 的第一行/列默认为维度信息,需要取到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'}, yAxis: {}, series: [ {type: 'bar'}, {type: 'bar'}, {type: 'bar'} ] }; ``` ### 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
