{"action":"created","issue":{"url":"https://api.github.com/repos/hustcc/echarts-for-react/issues/9","repository_url":"https://api.github.com/repos/hustcc/echarts-for-react","labels_url":"https://api.github.com/repos/hustcc/echarts-for-react/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/hustcc/echarts-for-react/issues/9/comments","events_url":"https://api.github.com/repos/hustcc/echarts-for-react/issues/9/events","html_url":"https://github.com/hustcc/echarts-for-react/issues/9","id":171887692,"number":9,"title":"How to connect several charts?","user":{"login":"alari","id":683668,"avatar_url":"https://avatars.githubusercontent.com/u/683668?v=3","gravatar_id":"","url":"https://api.github.com/users/alari","html_url":"https://github.com/alari","followers_url":"https://api.github.com/users/alari/followers","following_url":"https://api.github.com/users/alari/following{/other_user}","gists_url":"https://api.github.com/users/alari/gists{/gist_id}","starred_url":"https://api.github.com/users/alari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alari/subscriptions","organizations_url":"https://api.github.com/users/alari/orgs","repos_url":"https://api.github.com/users/alari/repos","events_url":"https://api.github.com/users/alari/events{/privacy}","received_events_url":"https://api.github.com/users/alari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-18T12:19:34Z","updated_at":"2016-08-18T14:17:05Z","closed_at":null,"body":"大家好.\r\n\r\nI'm trying to build a system with several interconnected charts just like it's described there: https://ecomfe.github.io/echarts/doc/example/mix8.html#macarons2-en but using React wrapper.\r\n\r\nHow can I access echart instance and it's .connect method?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/hustcc/echarts-for-react/issues/comments/240736535","html_url":"https://github.com/hustcc/echarts-for-react/issues/9#issuecomment-240736535","issue_url":"https://api.github.com/repos/hustcc/echarts-for-react/issues/9","id":240736535,"user":{"login":"hustcc","id":7856674,"avatar_url":"https://avatars.githubusercontent.com/u/7856674?v=3","gravatar_id":"","url":"https://api.github.com/users/hustcc","html_url":"https://github.com/hustcc","followers_url":"https://api.github.com/users/hustcc/followers","following_url":"https://api.github.com/users/hustcc/following{/other_user}","gists_url":"https://api.github.com/users/hustcc/gists{/gist_id}","starred_url":"https://api.github.com/users/hustcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hustcc/subscriptions","organizations_url":"https://api.github.com/users/hustcc/orgs","repos_url":"https://api.github.com/users/hustcc/repos","events_url":"https://api.github.com/users/hustcc/events{/privacy}","received_events_url":"https://api.github.com/users/hustcc/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T14:17:05Z","updated_at":"2016-08-18T14:17:05Z","body":"Sorry, my mistake.\r\n\r\n```js\r\nlet echarts_instance_1 = this.refs.echarts_react_1.getEchartsInstance(); \r\nlet echarts_instance_2 = this.refs.echarts_react_2.getEchartsInstance();\r\necharts_instance_1.group = 'group1';\r\necharts_instance_2.group = 'group1';\r\n\r\n// the echarts instance should require from echarts: import echarts from 'echarts';\r\necharts.connect('group1');\r\n// or connect the charts array like this\r\n// echarts.connect([chart1, chart2]);\r\n```\r\n\r\nThe demo of `baidu` is [here](http://echarts.baidu.com/api.html#echarts.connect), you can have a try. The [demo here](https://ecomfe.github.io/echarts/doc/example/mix8.html#macarons2-en) has some differents between it, maybe the problem of `version`."}}
{"actor":{"display_login":"hustcc"}}