{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts-for-weixin/issues/135","repository_url":"https://api.github.com/repos/ecomfe/echarts-for-weixin","labels_url":"https://api.github.com/repos/ecomfe/echarts-for-weixin/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts-for-weixin/issues/135/comments","events_url":"https://api.github.com/repos/ecomfe/echarts-for-weixin/issues/135/events","html_url":"https://github.com/ecomfe/echarts-for-weixin/issues/135","id":313185851,"number":135,"title":"小白请教，这个ec变量怎么传值进去啊，这样写会报错呢","user":{"login":"xiaozhang24","id":22018649,"avatar_url":"https://avatars1.githubusercontent.com/u/22018649?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaozhang24","html_url":"https://github.com/xiaozhang24","followers_url":"https://api.github.com/users/xiaozhang24/followers","following_url":"https://api.github.com/users/xiaozhang24/following{/other_user}","gists_url":"https://api.github.com/users/xiaozhang24/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaozhang24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaozhang24/subscriptions","organizations_url":"https://api.github.com/users/xiaozhang24/orgs","repos_url":"https://api.github.com/users/xiaozhang24/repos","events_url":"https://api.github.com/users/xiaozhang24/events{/privacy}","received_events_url":"https://api.github.com/users/xiaozhang24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-11T06:12:18Z","updated_at":"2018-04-11T07:16:18Z","closed_at":null,"author_association":"NONE","body":"## 提问前应该做的事\r\n\r\n请确保提问前做了以下事，将完成的项目的 `[]` 改为 `[x]`：\r\n\r\n- [x] 我已通读过 [README](https://github.com/ecomfe/echarts-for-weixin/blob/master/README.md)\r\n- [x] 我已阅读过 [FAQ](https://github.com/ecomfe/echarts-for-weixin/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Afaq+)\r\n\r\n## 需提供的信息\r\ndata: {\r\n    ArtsData:{\r\n      year: [\"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\"],\r\n      data: [562, 540, 528, 532, 511, 520]\r\n    },\r\n    ScienceData:{\r\n      year: [\"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\"],\r\n      data: [503, 512, 508, 497, 522, 510]\r\n    },\r\n    ecArts: {\r\n      onInit: initLineChart(this.data.ArtsData)\r\n    },\r\n    ecScience: {\r\n      onInit: initLineChart(this.data.ScienceData)\r\n    }\r\n  },\r\n将符合项的 `[]` 改为 `[x]`，并补充需要的信息：\r\n\r\n### 简单描述问题：\r\n你们是怎么传值进去，动态生成图表的呢\r\n\r\n### 预期效果：\r\n？？？\r\n（如有需要请提供预期的图）\r\n\r\n### 实际效果：\r\n？？？\r\n（如有需要请提供截图）\r\n\r\n### 复现环境：\r\n- [] 在微信开发工具中存在该问题\r\n- [] 在真机上存在该问题\r\n"},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts-for-weixin/issues/comments/380351903","html_url":"https://github.com/ecomfe/echarts-for-weixin/issues/135#issuecomment-380351903","issue_url":"https://api.github.com/repos/ecomfe/echarts-for-weixin/issues/135","id":380351903,"user":{"login":"jason19659","id":3355273,"avatar_url":"https://avatars3.githubusercontent.com/u/3355273?v=4","gravatar_id":"","url":"https://api.github.com/users/jason19659","html_url":"https://github.com/jason19659","followers_url":"https://api.github.com/users/jason19659/followers","following_url":"https://api.github.com/users/jason19659/following{/other_user}","gists_url":"https://api.github.com/users/jason19659/gists{/gist_id}","starred_url":"https://api.github.com/users/jason19659/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jason19659/subscriptions","organizations_url":"https://api.github.com/users/jason19659/orgs","repos_url":"https://api.github.com/users/jason19659/repos","events_url":"https://api.github.com/users/jason19659/events{/privacy}","received_events_url":"https://api.github.com/users/jason19659/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T07:16:18Z","updated_at":"2018-04-11T07:16:18Z","author_association":"NONE","body":"`\r\nchart.setOption({\r\n          xAxis: {\r\n            data: index\r\n          },\r\n          series: [{\r\n            type: 'line',\r\n            data: ***数据***\r\n          }]\r\n        })\r\n`"}}
{"actor":{"display_login":"jason19659"}}