{"action":"opened","issue":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/9151","repository_url":"https://api.github.com/repos/apache/incubator-echarts","labels_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9151/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9151/comments","events_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9151/events","html_url":"https://github.com/apache/incubator-echarts/issues/9151","id":365136203,"node_id":"MDU6SXNzdWUzNjUxMzYyMDM=","number":9151,"title":"Echarts Legend Not Appearing Using Dataset & Dimensions","user":{"login":"paras-malhotra","id":16099046,"node_id":"MDQ6VXNlcjE2MDk5MDQ2","avatar_url":"https://avatars2.githubusercontent.com/u/16099046?v=4","gravatar_id":"","url":"https://api.github.com/users/paras-malhotra","html_url":"https://github.com/paras-malhotra","followers_url":"https://api.github.com/users/paras-malhotra/followers","following_url":"https://api.github.com/users/paras-malhotra/following{/other_user}","gists_url":"https://api.github.com/users/paras-malhotra/gists{/gist_id}","starred_url":"https://api.github.com/users/paras-malhotra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paras-malhotra/subscriptions","organizations_url":"https://api.github.com/users/paras-malhotra/orgs","repos_url":"https://api.github.com/users/paras-malhotra/repos","events_url":"https://api.github.com/users/paras-malhotra/events{/privacy}","received_events_url":"https://api.github.com/users/paras-malhotra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-29T14:18:53Z","updated_at":"2018-09-29T14:18:53Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n\r\n\r\n### One-line summary [问题简述]\r\nThe 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/\r\n\r\n\r\n### Version & Environment [版本及环境]\r\n+ ECharts version [ECharts 版本]: 4.1\r\n+ Browser version [浏览器类型和版本]: Chrome 69.0.3497.100\r\n+ OS Version [操作系统类型和版本]: Mac OS\r\n\r\n\r\n\r\n\r\n\r\n### Expected behaviour [期望结果]\r\n\r\nThe legend should show\r\n\r\n\r\n\r\n### ECharts option [ECharts配置项]\r\n\r\n<!-- [下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->\r\n```javascript\r\noption = {\r\n    dataset: [{\r\n        source: [\r\n            ['Test1', 10],\r\n            ['Test2', 20]\r\n        ],\r\n        dimensions: ['Category', 'Value']\r\n    },\r\n    {\r\n        source: [\r\n            ['Test1', 15],\r\n            ['Test2', 25]\r\n        ],\r\n        dimensions: ['Category', 'Value2']\r\n    }],\r\n    xAxis: [{ type: 'category' }, { type: 'category' }],\r\n    yAxis: [{ position: 'left' }, { position: 'right' }],\r\n    series: [\r\n        {\r\n            type: 'line',\r\n            encode: {\r\n                x: 'Category',\r\n                y: 'Value'\r\n            },\r\n            datasetIndex: 0,\r\n            yAxisIndex: 0\r\n        },\r\n        {\r\n            type: 'line',\r\n            encode: {\r\n                x: 'Category',\r\n                y: 'Value2'\r\n            },\r\n            datasetIndex: 1,\r\n            yAxisIndex: 1\r\n        }\r\n    ],\r\n    color: [\"#c22e34\", \"#e7b603\", \"#0097da\", \"#2b821e\", \"#035daa\", \"#339ca8\"]\r\n};\r\n\r\n```\r\n\r\n\r\n\r\n\r\n### Other comments [其他信息]\r\n<!-- For example: Screenshot or Online demo -->\r\n<!-- [例如，截图或线上实例 (JSFiddle/JSBin/Codepen)] -->\r\n\r\n"}}
{"actor":{"display_login":"paras-malhotra"}}