{"action":"created","issue":{"url":"https://api.github.com/repos/novus/nvd3/issues/1114","repository_url":"https://api.github.com/repos/novus/nvd3","labels_url":"https://api.github.com/repos/novus/nvd3/issues/1114/labels{/name}","comments_url":"https://api.github.com/repos/novus/nvd3/issues/1114/comments","events_url":"https://api.github.com/repos/novus/nvd3/issues/1114/events","html_url":"https://github.com/novus/nvd3/issues/1114","id":92225176,"number":1114,"title":"Date mis-aligned on X-axis for multiChart - Bar + Line","user":{"login":"techpanja","id":6158491,"avatar_url":"https://avatars.githubusercontent.com/u/6158491?v=3","gravatar_id":"","url":"https://api.github.com/users/techpanja","html_url":"https://github.com/techpanja","followers_url":"https://api.github.com/users/techpanja/followers","following_url":"https://api.github.com/users/techpanja/following{/other_user}","gists_url":"https://api.github.com/users/techpanja/gists{/gist_id}","starred_url":"https://api.github.com/users/techpanja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techpanja/subscriptions","organizations_url":"https://api.github.com/users/techpanja/orgs","repos_url":"https://api.github.com/users/techpanja/repos","events_url":"https://api.github.com/users/techpanja/events{/privacy}","received_events_url":"https://api.github.com/users/techpanja/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/novus/nvd3/labels/Pending","name":"Pending","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-06-30T23:36:17Z","updated_at":"2016-09-11T03:09:41Z","closed_at":null,"body":"Date is mis-aligned on X-axis for multiChart - bar + line. I had similar issue with lineChart and I solved it by: lineChart.xScale(d3.time.scale());\r\n\r\nHowever, there is no such option for multiChart.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6158491/8444498/1d5d2654-1f46-11e5-8fa9-a3adac9b9769.png)\r\n"},"comment":{"url":"https://api.github.com/repos/novus/nvd3/issues/comments/246159022","html_url":"https://github.com/novus/nvd3/issues/1114#issuecomment-246159022","issue_url":"https://api.github.com/repos/novus/nvd3/issues/1114","id":246159022,"user":{"login":"liquidpele","id":1065913,"avatar_url":"https://avatars.githubusercontent.com/u/1065913?v=3","gravatar_id":"","url":"https://api.github.com/users/liquidpele","html_url":"https://github.com/liquidpele","followers_url":"https://api.github.com/users/liquidpele/followers","following_url":"https://api.github.com/users/liquidpele/following{/other_user}","gists_url":"https://api.github.com/users/liquidpele/gists{/gist_id}","starred_url":"https://api.github.com/users/liquidpele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liquidpele/subscriptions","organizations_url":"https://api.github.com/users/liquidpele/orgs","repos_url":"https://api.github.com/users/liquidpele/repos","events_url":"https://api.github.com/users/liquidpele/events{/privacy}","received_events_url":"https://api.github.com/users/liquidpele/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T03:09:40Z","updated_at":"2016-09-11T03:09:40Z","body":"mulitChart uses multiBar for the bar graph set to a linear scale, but it just doesn't always fit quite right because that chart is meant to be ordinal scale.   You probably want to use linePlusBarChart, which uses lines and historicalBar which are both designed for linear scale.    \r\n\r\nAnyway, if setting xScale helped then you can always override xScale the same way on the bar object itself... \r\n\r\nhttps://nvd3-community.github.io/nvd3/examples/documentation.html#multiChart\r\n\r\nnotice bar1 and bar2, those are multiBar objects which have xScale:\r\n\r\nhttps://nvd3-community.github.io/nvd3/examples/documentation.html#multiBar\r\n\r\nSo you should be able to do chart.bar1.xScale(d3.time.scale())"}}
{"actor":{"display_login":"liquidpele"}}