{"action":"created","issue":{"url":"https://api.github.com/repos/yang-wei/rd3/issues/42","repository_url":"https://api.github.com/repos/yang-wei/rd3","labels_url":"https://api.github.com/repos/yang-wei/rd3/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/yang-wei/rd3/issues/42/comments","events_url":"https://api.github.com/repos/yang-wei/rd3/issues/42/events","html_url":"https://github.com/yang-wei/rd3/issues/42","id":161480106,"number":42,"title":"ToolTip fails in LineChart for Date objects","user":{"login":"waywaaard","id":1634468,"avatar_url":"https://avatars.githubusercontent.com/u/1634468?v=3","gravatar_id":"","url":"https://api.github.com/users/waywaaard","html_url":"https://github.com/waywaaard","followers_url":"https://api.github.com/users/waywaaard/followers","following_url":"https://api.github.com/users/waywaaard/following{/other_user}","gists_url":"https://api.github.com/users/waywaaard/gists{/gist_id}","starred_url":"https://api.github.com/users/waywaaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waywaaard/subscriptions","organizations_url":"https://api.github.com/users/waywaaard/orgs","repos_url":"https://api.github.com/users/waywaaard/repos","events_url":"https://api.github.com/users/waywaaard/events{/privacy}","received_events_url":"https://api.github.com/users/waywaaard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yang-wei/rd3/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-21T16:18:22Z","updated_at":"2016-10-02T12:58:13Z","closed_at":null,"body":"I've some data series which look like this:\r\n```javascript\r\nlet series = [{\r\n name: 'test',\r\n values: [{date: new Date(), count: 3}]\r\n}];\r\n```\r\nI forked the LineChart Fiddle to demonstrate the problem: https://jsfiddle.net/Le5vt2ot/\r\n\r\nAfter some debugging I found the error in Line 81 in `DataSeries.js`:\r\n`if (Object.prototype.toString.call(xAccessor(point)) === '[object Date]') {`\r\n\r\nThe point object as this place has only a _x_ and _y_ value, but no _date_ or _count_ as expected by the accessor. Therefore, the call fails and returns null/undefined."},"comment":{"url":"https://api.github.com/repos/yang-wei/rd3/issues/comments/250970124","html_url":"https://github.com/yang-wei/rd3/issues/42#issuecomment-250970124","issue_url":"https://api.github.com/repos/yang-wei/rd3/issues/42","id":250970124,"user":{"login":"themre","id":10845050,"avatar_url":"https://avatars.githubusercontent.com/u/10845050?v=3","gravatar_id":"","url":"https://api.github.com/users/themre","html_url":"https://github.com/themre","followers_url":"https://api.github.com/users/themre/followers","following_url":"https://api.github.com/users/themre/following{/other_user}","gists_url":"https://api.github.com/users/themre/gists{/gist_id}","starred_url":"https://api.github.com/users/themre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themre/subscriptions","organizations_url":"https://api.github.com/users/themre/orgs","repos_url":"https://api.github.com/users/themre/repos","events_url":"https://api.github.com/users/themre/events{/privacy}","received_events_url":"https://api.github.com/users/themre/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T12:58:13Z","updated_at":"2016-10-02T12:58:13Z","body":"My override works: \r\n``` tooltipFormat={d => { return String(moment(d.xValue).format(\"YYYY-MM-DD\")) }} ```"}}
{"actor":{"display_login":"themre"}}