{"action":"created","issue":{"url":"https://api.github.com/repos/amcharts/amcharts4/issues/287","repository_url":"https://api.github.com/repos/amcharts/amcharts4","labels_url":"https://api.github.com/repos/amcharts/amcharts4/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/amcharts/amcharts4/issues/287/comments","events_url":"https://api.github.com/repos/amcharts/amcharts4/issues/287/events","html_url":"https://github.com/amcharts/amcharts4/issues/287","id":354299324,"node_id":"MDU6SXNzdWUzNTQyOTkzMjQ=","number":287,"title":"LineSeries Tooltip function","user":{"login":"samuel-p","id":7959516,"node_id":"MDQ6VXNlcjc5NTk1MTY=","avatar_url":"https://avatars0.githubusercontent.com/u/7959516?v=4","gravatar_id":"","url":"https://api.github.com/users/samuel-p","html_url":"https://github.com/samuel-p","followers_url":"https://api.github.com/users/samuel-p/followers","following_url":"https://api.github.com/users/samuel-p/following{/other_user}","gists_url":"https://api.github.com/users/samuel-p/gists{/gist_id}","starred_url":"https://api.github.com/users/samuel-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuel-p/subscriptions","organizations_url":"https://api.github.com/users/samuel-p/orgs","repos_url":"https://api.github.com/users/samuel-p/repos","events_url":"https://api.github.com/users/samuel-p/events{/privacy}","received_events_url":"https://api.github.com/users/samuel-p/received_events","type":"User","site_admin":false},"labels":[{"id":770370955,"node_id":"MDU6TGFiZWw3NzAzNzA5NTU=","url":"https://api.github.com/repos/amcharts/amcharts4/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":770370960,"node_id":"MDU6TGFiZWw3NzAzNzA5NjA=","url":"https://api.github.com/repos/amcharts/amcharts4/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"martynasma","id":1458520,"node_id":"MDQ6VXNlcjE0NTg1MjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1458520?v=4","gravatar_id":"","url":"https://api.github.com/users/martynasma","html_url":"https://github.com/martynasma","followers_url":"https://api.github.com/users/martynasma/followers","following_url":"https://api.github.com/users/martynasma/following{/other_user}","gists_url":"https://api.github.com/users/martynasma/gists{/gist_id}","starred_url":"https://api.github.com/users/martynasma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martynasma/subscriptions","organizations_url":"https://api.github.com/users/martynasma/orgs","repos_url":"https://api.github.com/users/martynasma/repos","events_url":"https://api.github.com/users/martynasma/events{/privacy}","received_events_url":"https://api.github.com/users/martynasma/received_events","type":"User","site_admin":false},"assignees":[{"login":"martynasma","id":1458520,"node_id":"MDQ6VXNlcjE0NTg1MjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1458520?v=4","gravatar_id":"","url":"https://api.github.com/users/martynasma","html_url":"https://github.com/martynasma","followers_url":"https://api.github.com/users/martynasma/followers","following_url":"https://api.github.com/users/martynasma/following{/other_user}","gists_url":"https://api.github.com/users/martynasma/gists{/gist_id}","starred_url":"https://api.github.com/users/martynasma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martynasma/subscriptions","organizations_url":"https://api.github.com/users/martynasma/orgs","repos_url":"https://api.github.com/users/martynasma/repos","events_url":"https://api.github.com/users/martynasma/events{/privacy}","received_events_url":"https://api.github.com/users/martynasma/received_events","type":"User","site_admin":false},{"login":"zeroin","id":5336255,"node_id":"MDQ6VXNlcjUzMzYyNTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5336255?v=4","gravatar_id":"","url":"https://api.github.com/users/zeroin","html_url":"https://github.com/zeroin","followers_url":"https://api.github.com/users/zeroin/followers","following_url":"https://api.github.com/users/zeroin/following{/other_user}","gists_url":"https://api.github.com/users/zeroin/gists{/gist_id}","starred_url":"https://api.github.com/users/zeroin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeroin/subscriptions","organizations_url":"https://api.github.com/users/zeroin/orgs","repos_url":"https://api.github.com/users/zeroin/repos","events_url":"https://api.github.com/users/zeroin/events{/privacy}","received_events_url":"https://api.github.com/users/zeroin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2018-08-27T12:30:24Z","updated_at":"2018-08-29T04:55:57Z","closed_at":null,"author_association":"NONE","body":"Is there anything simmilar to the old graph balloonFunction? I like to disable the tooltip for null values. \r\n\r\nIn version 3 I used the following graph config:\r\n```\r\n{\r\n  ... ,\r\n  \"balloonFunction\": function (graphDataItem, graph) {\r\n    let value = graphDataItem.values.value;\r\n    let title = graph.title;\r\n    if (value > 0) {\r\n      return title + \": <strong>\" + value + \"</strong>\";\r\n    } else {\r\n      return \"\";\r\n    }\r\n  },\r\n  ...\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/amcharts/amcharts4/issues/comments/416824152","html_url":"https://github.com/amcharts/amcharts4/issues/287#issuecomment-416824152","issue_url":"https://api.github.com/repos/amcharts/amcharts4/issues/287","id":416824152,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjgyNDE1Mg==","user":{"login":"samuel-p","id":7959516,"node_id":"MDQ6VXNlcjc5NTk1MTY=","avatar_url":"https://avatars0.githubusercontent.com/u/7959516?v=4","gravatar_id":"","url":"https://api.github.com/users/samuel-p","html_url":"https://github.com/samuel-p","followers_url":"https://api.github.com/users/samuel-p/followers","following_url":"https://api.github.com/users/samuel-p/following{/other_user}","gists_url":"https://api.github.com/users/samuel-p/gists{/gist_id}","starred_url":"https://api.github.com/users/samuel-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuel-p/subscriptions","organizations_url":"https://api.github.com/users/samuel-p/orgs","repos_url":"https://api.github.com/users/samuel-p/repos","events_url":"https://api.github.com/users/samuel-p/events{/privacy}","received_events_url":"https://api.github.com/users/samuel-p/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T04:55:57Z","updated_at":"2018-08-29T04:55:57Z","author_association":"NONE","body":"Thanks @martynasma your example works perfectly.\r\n\r\n@lfhenrl to handle HTML you have to use the key \"htmlOutput\".\r\n\r\n```\r\nitems.tooltipHTML = \"{name}: <strong>{valueY.value}</strong>\";\r\nitems.tooltip.label.adapter.add(\"htmlOutput\", (text, target, key) => {\r\n  if (target.dataItem) {\r\n    if (target.dataItem.values.valueY.value == 0) {\r\n      return '';\r\n    }\r\n  }\r\n  return text;\r\n});\r\n```\r\n\r\nThe example above works for me."}}
{"actor":{"display_login":"samuel-p"}}