{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/2792","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/2792/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/2792/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/2792/events","html_url":"https://github.com/ecomfe/echarts/issues/2792","id":140064114,"number":2792,"title":"多图联动的问题","user":{"login":"EyrebaLeo","id":17735331,"avatar_url":"https://avatars.githubusercontent.com/u/17735331?v=3","gravatar_id":"","url":"https://api.github.com/users/EyrebaLeo","html_url":"https://github.com/EyrebaLeo","followers_url":"https://api.github.com/users/EyrebaLeo/followers","following_url":"https://api.github.com/users/EyrebaLeo/following{/other_user}","gists_url":"https://api.github.com/users/EyrebaLeo/gists{/gist_id}","starred_url":"https://api.github.com/users/EyrebaLeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EyrebaLeo/subscriptions","organizations_url":"https://api.github.com/users/EyrebaLeo/orgs","repos_url":"https://api.github.com/users/EyrebaLeo/repos","events_url":"https://api.github.com/users/EyrebaLeo/events{/privacy}","received_events_url":"https://api.github.com/users/EyrebaLeo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T02:03:08Z","updated_at":"2016-03-11T02:06:09Z","closed_at":"2016-03-11T02:06:08Z","body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n#### 问题简述 (One-line summary)\r\n在其中一张图设置了inside类型的datazoom，但是在另外一张联动的图上不生效\r\n\r\n\r\n#### 版本及环境 (Version & Environment)\r\n+ ECharts 版本 (3.1.3):\r\n+ 浏览器类型和版本 (Chrome，版本 49.0.2623.87 m):\r\n+ 操作系统类型和版本 (windows7 专业版):\r\n\r\n\r\n#### 重现步骤 (Steps to reproduce)\r\n1.设置两张直角系图，本人设置的是柱状图和折线图，并且设置多图联动\r\n2.点击legend和tooltip触发都是可以联动的，但是inside类型的datazoom并没有实现联动的效果\r\n\r\n\r\n#### 期望结果 (Expected behaviour)\r\n期望设置了联动的图，在所有类型的datazoom都可以实现联动的效果\r\n\r\n\r\n#### 可能哪里有问题 (What went wrong)\r\n可能并没有设置datazoom的联动效果吧\r\n\r\n\r\n#### ECharts配置项 (ECharts option)\r\n<!-- 下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。\r\n最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing\r\n-->\r\n```javascript\r\noption = {\r\n    tooltip : {\r\n        trigger: 'axis',\r\n        axisPointer : {\r\n            type: 'shadow'\r\n        }\r\n    },\r\n    legend: {\r\n        data:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']\r\n    },\r\n    toolbox: {\r\n        show : true,\r\n        orient : 'vertical',\r\n        y : 'center',\r\n        feature : {\r\n            mark : {show: true},\r\n            magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},\r\n            restore : {show: true},\r\n            saveAsImage : {show: true}\r\n        }\r\n    },\r\n    calculable : true,\r\n    xAxis : [\r\n        {\r\n            type : 'category',\r\n            data : ['周一','周二','周三','周四','周五','周六','周日']\r\n        }\r\n    ],\r\n    yAxis : [\r\n        {\r\n            type : 'value',\r\n            splitArea : {show : true}\r\n        }\r\n    ],\r\n    grid: {\r\n        x2:40\r\n    },\r\n    series : [\r\n        {\r\n            name:'直接访问',\r\n            type:'bar',\r\n            data:[320, 332, 301, 334, 390, 330, 320]\r\n        },\r\n        {\r\n            name:'邮件营销',\r\n            type:'bar',\r\n            data:[120, 132, 101, 134, 90, 230, 210]\r\n        },\r\n        {\r\n            name:'联盟广告',\r\n            type:'line',\r\n            data:[]\r\n        },\r\n        {\r\n            name:'视频广告',\r\n            type:'line',\r\n            data:[]\r\n        },\r\n        {\r\n            name:'搜索引擎',\r\n            type:'line',\r\n            data:[]\r\n        }\r\n    ]\r\n};\r\nvar option2 = {\r\n    title : {\r\n        text: '某站点用户访问来源',\r\n        subtext: '纯属虚构',\r\n        x:'center'\r\n    },\r\n    dataZoom:[{\r\n        type:'inside',\r\n        xAxisIndex:0,\r\n    },\r\n    {\r\n        type:'inside',\r\n        yAxisIndex:0\r\n    }],\r\n    tooltip : {\r\n        trigger: 'axis'\r\n    },\r\n    legend: {\r\n        show:false,\r\n        orient : 'vertical',\r\n        x : 'left',\r\n        data:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']\r\n    },\r\n    xAxis : [\r\n        {\r\n            type : 'category',\r\n            data : ['周一','周二','周三','周四','周五','周六','周日'],\r\n            boundaryGap:false\r\n        }\r\n    ],\r\n    yAxis : [\r\n        {\r\n            type : 'value',\r\n            splitArea : {show : true}\r\n        }\r\n    ],\r\n    grid: {\r\n        x2:40\r\n    },\r\n    series : [\r\n\r\n        {\r\n            name:'联盟广告',\r\n            type:'line',\r\n            data:[220, 182, 191, 234, 290, 330, 310]\r\n        },\r\n        {\r\n            name:'视频广告',\r\n            type:'line',\r\n            data:[150, 232, 201, 154, 190, 330, 410]\r\n        },\r\n        {\r\n            name:'搜索引擎',\r\n            type:'line',\r\n            data:[820, 932, 901, 934, 1290, 1330, 1320]\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/issues/comments/195143802","html_url":"https://github.com/ecomfe/echarts/issues/2792#issuecomment-195143802","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/2792","id":195143802,"user":{"login":"pissang","id":841551,"avatar_url":"https://avatars.githubusercontent.com/u/841551?v=3","gravatar_id":"","url":"https://api.github.com/users/pissang","html_url":"https://github.com/pissang","followers_url":"https://api.github.com/users/pissang/followers","following_url":"https://api.github.com/users/pissang/following{/other_user}","gists_url":"https://api.github.com/users/pissang/gists{/gist_id}","starred_url":"https://api.github.com/users/pissang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pissang/subscriptions","organizations_url":"https://api.github.com/users/pissang/orgs","repos_url":"https://api.github.com/users/pissang/repos","events_url":"https://api.github.com/users/pissang/events{/privacy}","received_events_url":"https://api.github.com/users/pissang/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T02:06:08Z","updated_at":"2016-03-11T02:06:08Z","body":"另一个图也需要引入 dataZoom 组件"}}