<!-- 为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。 -->
### One-line summary [问题简述] The legend is not showing when we use Echarts dataset and dimensions. I think this might be a bug as I've tried almost everything. JS Fiddle: https://jsfiddle.net/jcgqfns8/ ### Version & Environment [版本及环境] + ECharts version [ECharts 版本]: 4.1 + Browser version [浏览器类型和版本]: Chrome 69.0.3497.100 + OS Version [操作系统类型和版本]: Mac OS ### Expected behaviour [期望结果] The legend should show ### ECharts option [ECharts配置项] <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] --> ```javascript option = { dataset: [{ source: [ ['Test1', 10], ['Test2', 20] ], dimensions: ['Category', 'Value'] }, { source: [ ['Test1', 15], ['Test2', 25] ], dimensions: ['Category', 'Value2'] }], xAxis: [{ type: 'category' }, { type: 'category' }], yAxis: [{ position: 'left' }, { position: 'right' }], series: [ { type: 'line', encode: { x: 'Category', y: 'Value' }, datasetIndex: 0, yAxisIndex: 0 }, { type: 'line', encode: { x: 'Category', y: 'Value2' }, datasetIndex: 1, yAxisIndex: 1 } ], color: ["#c22e34", "#e7b603", "#0097da", "#2b821e", "#035daa", "#339ca8"] }; ``` ### Other comments [其他信息] <!-- For example: Screenshot or Online demo --> <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] --> [ Full content available at: https://github.com/apache/incubator-echarts/issues/9151 ] This message was relayed via gitbox.apache.org for [email protected]
