{"action":"closed","issue":{"url":"https://api.github.com/repos/viserjs/viser/issues/258","repository_url":"https://api.github.com/repos/viserjs/viser","labels_url":"https://api.github.com/repos/viserjs/viser/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/viserjs/viser/issues/258/comments","events_url":"https://api.github.com/repos/viserjs/viser/issues/258/events","html_url":"https://github.com/viserjs/viser/issues/258","id":375789219,"node_id":"MDU6SXNzdWUzNzU3ODkyMTk=","number":258,"title":"tooltip如何显示指定列显示单位","user":{"login":"t880216t","id":16489708,"node_id":"MDQ6VXNlcjE2NDg5NzA4","avatar_url":"https://avatars2.githubusercontent.com/u/16489708?v=4","gravatar_id":"","url":"https://api.github.com/users/t880216t","html_url":"https://github.com/t880216t","followers_url":"https://api.github.com/users/t880216t/followers","following_url":"https://api.github.com/users/t880216t/following{/other_user}","gists_url":"https://api.github.com/users/t880216t/gists{/gist_id}","starred_url":"https://api.github.com/users/t880216t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t880216t/subscriptions","organizations_url":"https://api.github.com/users/t880216t/orgs","repos_url":"https://api.github.com/users/t880216t/repos","events_url":"https://api.github.com/users/t880216t/events{/privacy}","received_events_url":"https://api.github.com/users/t880216t/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-31T04:01:17Z","updated_at":"2018-11-08T03:57:21Z","closed_at":"2018-11-08T03:57:21Z","author_association":"NONE","body":"您好，如图我需要给tooltip显示一个单位，请问怎么才能实现呢？\r\n\r\n![20181031115519](https://user-images.githubusercontent.com/16489708/47765280-2d096c00-dd04-11e8-8798-8d8262d6c18e.png)\r\n\r\n源数据如下：\r\n`const sourceData = [\r\n  { month: 'Jan', mem: 3.9 ,activity:'com.buyer'},]`\r\n\r\n我有尝试，用itemTpl\r\n` \r\nconst itemTpl = '<li><span style=\"background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;\"></span>{name} : {value} mb</li>'\r\n\r\n...\r\n<Tooltip itemTpl={itemTpl} \r\n`\r\n但这样下面的纯文本后面也会有这个mb,求教求教！"}}
{"actor":{"display_login":"huxiaoyun"}}