{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/victory/issues/1025","repository_url":"https://api.github.com/repos/FormidableLabs/victory","labels_url":"https://api.github.com/repos/FormidableLabs/victory/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/victory/issues/1025/comments","events_url":"https://api.github.com/repos/FormidableLabs/victory/issues/1025/events","html_url":"https://github.com/FormidableLabs/victory/issues/1025","id":331385460,"node_id":"MDU6SXNzdWUzMzEzODU0NjA=","number":1025,"title":"VictoryTooltip don't seem to show up when using VictoryLine","user":{"login":"ikassi","id":1236660,"node_id":"MDQ6VXNlcjEyMzY2NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1236660?v=4","gravatar_id":"","url":"https://api.github.com/users/ikassi","html_url":"https://github.com/ikassi","followers_url":"https://api.github.com/users/ikassi/followers","following_url":"https://api.github.com/users/ikassi/following{/other_user}","gists_url":"https://api.github.com/users/ikassi/gists{/gist_id}","starred_url":"https://api.github.com/users/ikassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikassi/subscriptions","organizations_url":"https://api.github.com/users/ikassi/orgs","repos_url":"https://api.github.com/users/ikassi/repos","events_url":"https://api.github.com/users/ikassi/events{/privacy}","received_events_url":"https://api.github.com/users/ikassi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-11T23:30:03Z","updated_at":"2018-06-11T23:46:33Z","closed_at":"2018-06-11T23:46:33Z","author_association":"NONE","body":"# Bug\r\n\r\n### The Problem\r\nI could be missing something but VictoryTooltip don't seem to show up when using VictoryLine, is that the intended behaviour? \r\n\r\n### Reproduction\r\nYou can see an example here: https://codesandbox.io/s/k5yzzrzzj3\r\n```\r\n    <VictoryChart\r\n        padding={{ top: 20, left: 50, right: 50, bottom: 30 }}\r\n        width={600} height={100}\r\n        scale={{ x: \"time\", y: 'linear' }}\r\n      >\r\n        <VictoryAxis\r\n          tickFormat={(x) => new Date(x).getFullYear()}\r\n          style={{ tickLabels: { fontSize: 10, padding: 5 }, }}\r\n        />\r\n        <VictoryLine\r\n\r\n          labelComponent={<VictoryTooltip />}\r\n          data={[\r\n            { key: new Date(2018, 1, 1), b: 57, label: \"57 kg\" },\r\n            { key: new Date(2018, 2, 2), b: 56, label: \"56 kg\" },\r\n            { key: new Date(2018, 3, 3), b: 55, label: \"55 kg\" },\r\n            { key: new Date(2018, 4, 4), b: 56, label: \"56 kg\" },\r\n            { key: new Date(2018, 5, 5), b: 55, label: \"55 kg\" },\r\n            { key: new Date(2018, 6, 6), b: 55, label: \"55 kg\" },\r\n            { key: new Date(2018, 7, 7), b: 54, label: \"54 kg\" },\r\n            { key: new Date(2018, 8, 8), b: 53, label: \"53 kg\" }\r\n          ]}\r\n          x=\"key\"\r\n          y=\"b\"\r\n        />\r\n      </VictoryChart>\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/victory/issues/comments/396421071","html_url":"https://github.com/FormidableLabs/victory/issues/1025#issuecomment-396421071","issue_url":"https://api.github.com/repos/FormidableLabs/victory/issues/1025","id":396421071,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjQyMTA3MQ==","user":{"login":"boygirl","id":3719995,"node_id":"MDQ6VXNlcjM3MTk5OTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3719995?v=4","gravatar_id":"","url":"https://api.github.com/users/boygirl","html_url":"https://github.com/boygirl","followers_url":"https://api.github.com/users/boygirl/followers","following_url":"https://api.github.com/users/boygirl/following{/other_user}","gists_url":"https://api.github.com/users/boygirl/gists{/gist_id}","starred_url":"https://api.github.com/users/boygirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boygirl/subscriptions","organizations_url":"https://api.github.com/users/boygirl/orgs","repos_url":"https://api.github.com/users/boygirl/repos","events_url":"https://api.github.com/users/boygirl/events{/privacy}","received_events_url":"https://api.github.com/users/boygirl/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T23:46:33Z","updated_at":"2018-06-11T23:46:33Z","author_association":"MEMBER","body":"@ikassi `VictoryLine` only has one event target (just the single line element), so `VictoryTooltip` wont work properly. Try using `VictoryVoronoiContainer` to add your tooltips: https://formidable.com/open-source/victory/docs/victory-voronoi-container/\r\n"}}
{"actor":{"display_login":"boygirl"}}