{"action":"created","issue":{"url":"https://api.github.com/repos/somonus/react-native-echarts/issues/103","repository_url":"https://api.github.com/repos/somonus/react-native-echarts","labels_url":"https://api.github.com/repos/somonus/react-native-echarts/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/somonus/react-native-echarts/issues/103/comments","events_url":"https://api.github.com/repos/somonus/react-native-echarts/issues/103/events","html_url":"https://github.com/somonus/react-native-echarts/pull/103","id":310006051,"number":103,"title":"修复formatter里即使输入'\\\\n'也没有换行符的bug","user":{"login":"349989153","id":10381674,"avatar_url":"https://avatars0.githubusercontent.com/u/10381674?v=4","gravatar_id":"","url":"https://api.github.com/users/349989153","html_url":"https://github.com/349989153","followers_url":"https://api.github.com/users/349989153/followers","following_url":"https://api.github.com/users/349989153/following{/other_user}","gists_url":"https://api.github.com/users/349989153/gists{/gist_id}","starred_url":"https://api.github.com/users/349989153/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/349989153/subscriptions","organizations_url":"https://api.github.com/users/349989153/orgs","repos_url":"https://api.github.com/users/349989153/repos","events_url":"https://api.github.com/users/349989153/events{/privacy}","received_events_url":"https://api.github.com/users/349989153/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-30T08:15:47Z","updated_at":"2018-03-30T08:17:49Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/somonus/react-native-echarts/pulls/103","html_url":"https://github.com/somonus/react-native-echarts/pull/103","diff_url":"https://github.com/somonus/react-native-echarts/pull/103.diff","patch_url":"https://github.com/somonus/react-native-echarts/pull/103.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/somonus/react-native-echarts/issues/comments/377475077","html_url":"https://github.com/somonus/react-native-echarts/pull/103#issuecomment-377475077","issue_url":"https://api.github.com/repos/somonus/react-native-echarts/issues/103","id":377475077,"user":{"login":"349989153","id":10381674,"avatar_url":"https://avatars0.githubusercontent.com/u/10381674?v=4","gravatar_id":"","url":"https://api.github.com/users/349989153","html_url":"https://github.com/349989153","followers_url":"https://api.github.com/users/349989153/followers","following_url":"https://api.github.com/users/349989153/following{/other_user}","gists_url":"https://api.github.com/users/349989153/gists{/gist_id}","starred_url":"https://api.github.com/users/349989153/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/349989153/subscriptions","organizations_url":"https://api.github.com/users/349989153/orgs","repos_url":"https://api.github.com/users/349989153/repos","events_url":"https://api.github.com/users/349989153/events{/privacy}","received_events_url":"https://api.github.com/users/349989153/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T08:17:49Z","updated_at":"2018-03-30T08:17:49Z","author_association":"NONE","body":"改了之后，写成这样：\r\n`\r\nformatter: function (name) {\r\n        var maxLength = 40;\r\n        if (name.length > maxLength) {\r\n          return name.slice(0, maxLength) + '\\nn' + name.slice(maxLength);\r\n        }\r\n        return name;\r\n      }\r\n`\r\n就可以换行了。"}}
{"actor":{"display_login":"349989153"}}