{"action":"closed","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/2012","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/2012/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/2012/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/2012/events","html_url":"https://github.com/ecomfe/echarts/issues/2012","id":105718042,"number":2012,"title":"在部分标签为中文的情况下，字符云绑定点击事件，事件触发对象错误","user":{"login":"catroll","id":2956870,"avatar_url":"https://avatars.githubusercontent.com/u/2956870?v=3","gravatar_id":"","url":"https://api.github.com/users/catroll","html_url":"https://github.com/catroll","followers_url":"https://api.github.com/users/catroll/followers","following_url":"https://api.github.com/users/catroll/following{/other_user}","gists_url":"https://api.github.com/users/catroll/gists{/gist_id}","starred_url":"https://api.github.com/users/catroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catroll/subscriptions","organizations_url":"https://api.github.com/users/catroll/orgs","repos_url":"https://api.github.com/users/catroll/repos","events_url":"https://api.github.com/users/catroll/events{/privacy}","received_events_url":"https://api.github.com/users/catroll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T02:02:53Z","updated_at":"2015-09-10T02:40:54Z","closed_at":"2015-09-10T02:40:54Z","body":"想用字符云做博客的“TAG云”，结果发现只要 `data` 中有 `name` 为中文，且 `value` 足够大的时候，点击部分标签时，选中的标签不对。\r\n\r\n通过以下代码，在官网上随便找一个实例（例如：[line1](http://echarts.baidu.com/doc/example/line1.html)），贴入刷新即可验证：\r\n\r\n```js\r\nfunction createRandomItemStyle() {\r\n    return {\r\n        normal: {\r\n            color: 'rgb(' + [\r\n                Math.round(Math.random() * 160),\r\n                Math.round(Math.random() * 160),\r\n                Math.round(Math.random() * 160)\r\n            ].join(',') + ')'\r\n        }\r\n    };\r\n}\r\n\r\noption = {\r\n    title: {\r\n        text: 'Google Trends',\r\n        link: 'http://www.google.com/trends/hottrends'\r\n    },\r\n    tooltip: {\r\n        show: true\r\n    },\r\n    series: [{\r\n        name: 'Google Trends',\r\n        type: 'wordCloud',\r\n        size: ['80%', '80%'],\r\n        textRotation : [0, 45, 90, -45],\r\n        textPadding: 0,\r\n        autoSize: {\r\n            enable: true,\r\n            minSize: 14\r\n        },\r\n        data: [\r\n            {\r\n                name: \"Sam S Club\",\r\n                value: 10000,\r\n                itemStyle: {\r\n                    normal: {\r\n                        color: 'black'\r\n                    }\r\n                }\r\n            },\r\n            {\r\n                name: \"Macys\",\r\n                value: 6181,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Amy Schumer\",\r\n                value: 4386,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Jurassic World\",\r\n                value: 4055,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Charter Communications\",\r\n                value: 2467,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Chick Fil A\",\r\n                value: 2244,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Planet Fitness\",\r\n                value: 1898,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Pitch Perfect\",\r\n                value: 1484,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Express\",\r\n                value: 1112,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Home\",\r\n                value: 965,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Johnny Depp\",\r\n                value: 847,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Lena Dunham\",\r\n                value: 582,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Lewis Hamilton\",\r\n                value: 555,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"KXAN\",\r\n                value: 550,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Mary Ellen Mark\",\r\n                value: 462,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Farrah Abraham\",\r\n                value: 366,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"我爱北京天安门\",\r\n                value: 3600,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Serena Williams\",\r\n                value: 282,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"NCAA baseball tournament\",\r\n                value: 273,\r\n                itemStyle: createRandomItemStyle()\r\n            },\r\n            {\r\n                name: \"Point Break\",\r\n                value: 265,\r\n                itemStyle: createRandomItemStyle()\r\n            }\r\n        ]\r\n    }]\r\n};\r\n\r\nfunction test(t){alert(t['name']);}\r\n(function(){\r\n    myChart.on('click', test)\r\n})();\r\n```"}}