{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/9391","repository_url":"https://api.github.com/repos/apache/incubator-echarts","labels_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9391/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9391/comments","events_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9391/events","html_url":"https://github.com/apache/incubator-echarts/issues/9391","id":380121114,"node_id":"MDU6SXNzdWUzODAxMjExMTQ=","number":9391,"title":"vue直接import的echart，渲染完成后finished事件没触发","user":{"login":"hyfdemo","id":23278722,"node_id":"MDQ6VXNlcjIzMjc4NzIy","avatar_url":"https://avatars2.githubusercontent.com/u/23278722?v=4","gravatar_id":"","url":"https://api.github.com/users/hyfdemo","html_url":"https://github.com/hyfdemo","followers_url":"https://api.github.com/users/hyfdemo/followers","following_url":"https://api.github.com/users/hyfdemo/following{/other_user}","gists_url":"https://api.github.com/users/hyfdemo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyfdemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyfdemo/subscriptions","organizations_url":"https://api.github.com/users/hyfdemo/orgs","repos_url":"https://api.github.com/users/hyfdemo/repos","events_url":"https://api.github.com/users/hyfdemo/events{/privacy}","received_events_url":"https://api.github.com/users/hyfdemo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-13T09:00:13Z","updated_at":"2018-11-14T09:17:36Z","closed_at":"2018-11-14T09:17:36Z","author_association":"NONE","body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n\r\n\r\n### One-line summary [问题简述]\r\nvue直接import的echart，子组件使用echart编码渲染完成后finished事件没触发\r\n\r\n\r\n\r\n\r\n### Version & Environment [版本及环境]\r\n+ ECharts version [ECharts 版本]: 3.8.5\r\n+ Browser version [浏览器类型和版本]:chrome70\r\n+ OS Version [操作系统类型和版本]:win10\r\n\r\n\r\n\r\n\r\n\r\n### Expected behaviour [期望结果]\r\n怎么才能正常触发finished事件\r\n\r\n\r\n\r\n\r\n### ECharts option [ECharts配置项]\r\n<!-- Copy and paste your 'echarts option' here. -->\r\n<!-- [下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->\r\n```javascript\r\noption = {\r\ntitle: {\r\n          text: \"客单价对比图\",\r\n          x: \"center\"\r\n        },\r\n        tooltip: {\r\n          trigger: \"axis\",\r\n          axisPointer: {\r\n            type: \"shadow\"\r\n          }\r\n        },\r\n        legend: {\r\n          top: \"8%\",\r\n          data: [\"本周期\", \"去年同期\", \"上个周期\"]\r\n        },\r\n        calculable: true,\r\n        xAxis: [\r\n          {\r\n            type: \"category\",\r\n            axisTick: { show: false },\r\n            data: [\"综合客单价\", \"游乐客单价\", \"商业客单价\"]\r\n          }\r\n        ],\r\n        yAxis: [\r\n          {\r\n            type: \"value\"\r\n          }\r\n        ],\r\n        series: [\r\n          {\r\n            name: \"本周期\",\r\n            type: \"bar\",\r\n            barGap: 0.2,\r\n            label: {\r\n              normal: {\r\n                show: true,\r\n                position: \"top\"\r\n              }\r\n            },\r\n            data: [1, 2, 3]\r\n          },\r\n          {\r\n            name: \"去年同期\",\r\n            type: \"bar\",\r\n            label: {\r\n              normal: {\r\n                show: true,\r\n                position: \"top\"\r\n              }\r\n            },\r\n            data: [4, 5,6]\r\n          },\r\n          {\r\n            name: \"上个周期\",\r\n            type: \"bar\",\r\n            label: {\r\n              normal: {\r\n                show: true,\r\n                position: \"top\"\r\n              }\r\n            },\r\n            data: [7,8,9]\r\n          }\r\n        ]\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        var myChartbar = this.$echarts.init(document.getElementById(\"bar\"));\r\n        myChartbar.setOption(this.option);\r\nmyChartbar.on(\"finished\", function() {\r\n          console.log(\"finished\");\r\n});"},"comment":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/comments/438592291","html_url":"https://github.com/apache/incubator-echarts/issues/9391#issuecomment-438592291","issue_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9391","id":438592291,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODU5MjI5MQ==","user":{"login":"Ovilia","id":779050,"node_id":"MDQ6VXNlcjc3OTA1MA==","avatar_url":"https://avatars3.githubusercontent.com/u/779050?v=4","gravatar_id":"","url":"https://api.github.com/users/Ovilia","html_url":"https://github.com/Ovilia","followers_url":"https://api.github.com/users/Ovilia/followers","following_url":"https://api.github.com/users/Ovilia/following{/other_user}","gists_url":"https://api.github.com/users/Ovilia/gists{/gist_id}","starred_url":"https://api.github.com/users/Ovilia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ovilia/subscriptions","organizations_url":"https://api.github.com/users/Ovilia/orgs","repos_url":"https://api.github.com/users/Ovilia/repos","events_url":"https://api.github.com/users/Ovilia/events{/privacy}","received_events_url":"https://api.github.com/users/Ovilia/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T09:17:36Z","updated_at":"2018-11-14T09:17:36Z","author_association":"CONTRIBUTOR","body":"`finished` is called without Vue environment. Please check again with Vue usage."}}
{"actor":{"display_login":"Ovilia"}}