{"action":"created","issue":{"url":"https://api.github.com/repos/whawker/react-jsx-highcharts/issues/118","repository_url":"https://api.github.com/repos/whawker/react-jsx-highcharts","labels_url":"https://api.github.com/repos/whawker/react-jsx-highcharts/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/whawker/react-jsx-highcharts/issues/118/comments","events_url":"https://api.github.com/repos/whawker/react-jsx-highcharts/issues/118/events","html_url":"https://github.com/whawker/react-jsx-highcharts/issues/118","id":331110977,"node_id":"MDU6SXNzdWUzMzExMTA5Nzc=","number":118,"title":"How to add more elements in the tooltips ? ","user":{"login":"kweyhaupt","id":28078480,"node_id":"MDQ6VXNlcjI4MDc4NDgw","avatar_url":"https://avatars0.githubusercontent.com/u/28078480?v=4","gravatar_id":"","url":"https://api.github.com/users/kweyhaupt","html_url":"https://github.com/kweyhaupt","followers_url":"https://api.github.com/users/kweyhaupt/followers","following_url":"https://api.github.com/users/kweyhaupt/following{/other_user}","gists_url":"https://api.github.com/users/kweyhaupt/gists{/gist_id}","starred_url":"https://api.github.com/users/kweyhaupt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kweyhaupt/subscriptions","organizations_url":"https://api.github.com/users/kweyhaupt/orgs","repos_url":"https://api.github.com/users/kweyhaupt/repos","events_url":"https://api.github.com/users/kweyhaupt/events{/privacy}","received_events_url":"https://api.github.com/users/kweyhaupt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-11T09:27:59Z","updated_at":"2018-06-12T10:30:13Z","closed_at":"2018-06-11T10:05:34Z","author_association":"NONE","body":"Hi, \r\n\r\nFirst of all, thank you for this library, it helped me a lot during my current project !\r\n\r\nSecondly, I have a question, is this possible to add another element such as a score in the tooltip in addition to the Y detailed value? \r\nI know that you can give to serie an array with object (ex: [{y: 42, score: 20}...] to the basic Highcharts JS library. After that you can simply retrieve the 'score' value in the tooltip formatter, but i don't know how to do this with your library.\r\n\r\nI tried multiple solutions : \r\n- Add tooltip formatter in the plotOption const \r\n`tooltip: {\r\n    formatter: function () {\r\n        return 'The value for <b>' + this.score +\r\n            '</b> is <b>' + this.y + '</b>';\r\n    }\r\n}`\r\n- Create a function in my graph component which return : 'Score: <b>' + point.score + '</b>'; and give this fonction to the props formatter of my Tooltip component.\r\n\r\nNone of them worked so far, so i was wondering if there was a solution to make this work.\r\n\r\nRegards,\r\nKévin"},"comment":{"url":"https://api.github.com/repos/whawker/react-jsx-highcharts/issues/comments/396543256","html_url":"https://github.com/whawker/react-jsx-highcharts/issues/118#issuecomment-396543256","issue_url":"https://api.github.com/repos/whawker/react-jsx-highcharts/issues/118","id":396543256,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjU0MzI1Ng==","user":{"login":"kweyhaupt","id":28078480,"node_id":"MDQ6VXNlcjI4MDc4NDgw","avatar_url":"https://avatars0.githubusercontent.com/u/28078480?v=4","gravatar_id":"","url":"https://api.github.com/users/kweyhaupt","html_url":"https://github.com/kweyhaupt","followers_url":"https://api.github.com/users/kweyhaupt/followers","following_url":"https://api.github.com/users/kweyhaupt/following{/other_user}","gists_url":"https://api.github.com/users/kweyhaupt/gists{/gist_id}","starred_url":"https://api.github.com/users/kweyhaupt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kweyhaupt/subscriptions","organizations_url":"https://api.github.com/users/kweyhaupt/orgs","repos_url":"https://api.github.com/users/kweyhaupt/repos","events_url":"https://api.github.com/users/kweyhaupt/events{/privacy}","received_events_url":"https://api.github.com/users/kweyhaupt/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T10:30:13Z","updated_at":"2018-06-12T10:30:13Z","author_association":"NONE","body":"Hi! \r\n\r\nIt works great ! Thank you for your fast answer !\r\n\r\nHave a nice day. \r\nRegards, Kévin"}}
{"actor":{"display_login":"kweyhaupt"}}