{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/9524","repository_url":"https://api.github.com/repos/apache/incubator-echarts","labels_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9524/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9524/comments","events_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9524/events","html_url":"https://github.com/apache/incubator-echarts/issues/9524","id":387565499,"node_id":"MDU6SXNzdWUzODc1NjU0OTk=","number":9524,"title":"如何在多个grid中分别显示tooltip问题","user":{"login":"jinriwen","id":45612790,"node_id":"MDQ6VXNlcjQ1NjEyNzkw","avatar_url":"https://avatars2.githubusercontent.com/u/45612790?v=4","gravatar_id":"","url":"https://api.github.com/users/jinriwen","html_url":"https://github.com/jinriwen","followers_url":"https://api.github.com/users/jinriwen/followers","following_url":"https://api.github.com/users/jinriwen/following{/other_user}","gists_url":"https://api.github.com/users/jinriwen/gists{/gist_id}","starred_url":"https://api.github.com/users/jinriwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinriwen/subscriptions","organizations_url":"https://api.github.com/users/jinriwen/orgs","repos_url":"https://api.github.com/users/jinriwen/repos","events_url":"https://api.github.com/users/jinriwen/events{/privacy}","received_events_url":"https://api.github.com/users/jinriwen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-05T02:24:55Z","updated_at":"2018-12-05T06:18:33Z","closed_at":null,"author_association":"NONE","body":"代码:\r\n```js\r\noption = {\r\n     tooltip: {\r\n                trigger: 'axis',\r\n                axisPointer: {\r\n                    type: 'cross'\r\n                },\r\n                backgroundColor: 'rgba(245, 245, 245, 0.8)',\r\n                borderWidth: 1,\r\n                borderColor: '#ccc',\r\n                padding: 10,\r\n                textStyle: {\r\n                    color: '#000'\r\n                }\r\n            },\r\n            axisPointer: {\r\n                link: { xAxisIndex: 'all' },\r\n                label: {\r\n                    backgroundColor: '#777'\r\n                }\r\n            },\r\n    grid: [{\r\n                    left: '3%',\r\n                    right: '4%',\r\n                    bottom: 30,\r\n                    height: 90\r\n                }, {\r\n                    left: '3%',\r\n                    right: '4%',\r\n                    bottom: 150,\r\n                    height: 90\r\n                }, {\r\n                    left: '3%',\r\n                    right: '4%',\r\n                    bottom: 270,\r\n                    height: 90\r\n                }, {\r\n                    left: '3%',\r\n                    right: '4%',\r\n                    bottom: 410,\r\n                    height: 90\r\n                }, {\r\n                    left: '3%',\r\n                    right: '4%',\r\n                    bottom: 530,\r\n                    height: 90\r\n                }],\r\n   xAxis: [{\r\n                    type: 'category',\r\n                    boundaryGap: false,\r\n                    data: ['一', '二', '三', '四', '五', '六', '日']\r\n                }, {\r\n                    type: 'category',\r\n                    boundaryGap: false,\r\n                    data: ['一', '二', '三', '四', '五', '六', '日'],\r\n                    gridIndex: 1\r\n                }, {\r\n                    type: 'category',\r\n                    boundaryGap: false,\r\n                    data: ['一', '二', '三', '四', '五', '六', '日'],\r\n                    gridIndex: 2\r\n                }, {\r\n                    type: 'category',\r\n                    boundaryGap: false,\r\n                    data: ['一', '二', '三', '四', '五', '六', '日'],\r\n                    gridIndex: 3\r\n                },\r\n                {\r\n                    type: 'category',\r\n                    boundaryGap: false,\r\n                    data: ['一', '二', '三', '四', '五', '六', '日'],\r\n                    gridIndex: 4\r\n                }],\r\n    yAxis: [{\r\n                    type: 'value',\r\n                    axisTick: {\r\n                        show: false\r\n                    },\r\n                    splitLine: {\r\n                        show: false\r\n                    },\r\n                    interval: 10000\r\n                }, {\r\n                    type: 'value',\r\n                    gridIndex: 1,\r\n                    axisTick: {\r\n                        show: false\r\n                    },\r\n                    splitLine: {\r\n                        show: false\r\n                    },\r\n                    interval: 10000\r\n                }, {\r\n                    type: 'value',\r\n                    gridIndex: 2,\r\n                    axisTick: {\r\n                        show: false\r\n                    },\r\n                    splitLine: {\r\n                        show: false\r\n                    },\r\n                    interval: 10000\r\n                }, {\r\n                    type: 'value',\r\n                    gridIndex: 3,\r\n                    axisTick: {\r\n                        show: false\r\n                    },\r\n                    splitLine: {\r\n                        show: false\r\n                    },\r\n                    interval: 10000\r\n                }, {\r\n                    type: 'value',\r\n                    gridIndex: 4,\r\n                    axisTick: {\r\n                        show: false\r\n                    },\r\n                    splitLine: {\r\n                        show: false\r\n                    },\r\n                    interval: 10000\r\n                }],\r\n   series: [\r\n                    {\r\n                        name: 'mail',\r\n                        type: 'line',\r\n                        data: [10, 80, 40, 60, 30, 50, 70],\r\n                        xAxisIndex: 0,\r\n                        yAxisIndex: 0\r\n                    },\r\n                    {\r\n                        name: 'ad',\r\n                        type: 'line',\r\n                        data: [80, 40, 60, 30, 50, 70, 10],\r\n                        xAxisIndex: 1,\r\n                        yAxisIndex: 1\r\n                    },\r\n                    {\r\n                        name: 'vadio',\r\n                        type: 'line',\r\n                        data: [40, 60, 30, 50, 70, 10, 80],\r\n                        xAxisIndex: 2,\r\n                        yAxisIndex: 2\r\n                    },\r\n                    {\r\n                        name: '访问',\r\n                        type: 'line',\r\n                        data: [60, 30, 50, 70, 10, 80, 40],\r\n                        xAxisIndex: 3,\r\n                        yAxisIndex: 3\r\n                    },\r\n                    {\r\n                        name: 'search',\r\n                        type: 'line',\r\n                        data: [30, 50, 70, 10, 80, 40, 60],\r\n                        xAxisIndex: 4,\r\n                        yAxisIndex: 4\r\n                    }\r\n                ]\r\n};\r\n```\r\n![20181205103838](https://user-images.githubusercontent.com/45612790/49485907-fa610f00-f87f-11e8-8085-ea455db8635c.png)\r\n\r\n_你好,如上图:\r\n\r\n描述:上图的chart由多个grid的组成,图中纵坐标等于为'二'处有一条贯穿所有grid的Y线,Y线与grid中的数据交叉时,会出现tooltip,tooltip中显示Y线与所有grid的相交点数据.\r\n\r\n问题:我想要实现如下效果,当贯穿线Y线与所有grid的数据相交时,每个相交点右侧有属于自己独有的tooltip,在属于每个交点自己独有的tooltip中,只显示Y线与自己的交点的数据.(具体效果如下图)_\r\n![echarts3](https://user-images.githubusercontent.com/45612790/49485289-ba009180-f87d-11e8-857d-9ad2b3d1b656.png)\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-echarts/issues/comments/444372358","html_url":"https://github.com/apache/incubator-echarts/issues/9524#issuecomment-444372358","issue_url":"https://api.github.com/repos/apache/incubator-echarts/issues/9524","id":444372358,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDM3MjM1OA==","user":{"login":"pissang","id":841551,"node_id":"MDQ6VXNlcjg0MTU1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/841551?v=4","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":"2018-12-05T06:18:33Z","updated_at":"2018-12-05T06:18:33Z","author_association":"CONTRIBUTOR","body":"现在单实例不支持这种形式的 tooltip，可以试试多实例联动的形式"}}
{"actor":{"display_login":"pissang"}}