{"action":"created","issue":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/945","labels_url":"https://api.github.com/repos/masayuki0812/c3/issues/945/labels{/name}","comments_url":"https://api.github.com/repos/masayuki0812/c3/issues/945/comments","events_url":"https://api.github.com/repos/masayuki0812/c3/issues/945/events","html_url":"https://github.com/masayuki0812/c3/issues/945","id":55606806,"number":945,"title":"Bar chart with x-axis min and max acts weird with one datapoint","user":{"login":"RanzQ","id":1150613,"avatar_url":"https://avatars.githubusercontent.com/u/1150613?v=3","gravatar_id":"","url":"https://api.github.com/users/RanzQ","html_url":"https://github.com/RanzQ","followers_url":"https://api.github.com/users/RanzQ/followers","following_url":"https://api.github.com/users/RanzQ/following{/other_user}","gists_url":"https://api.github.com/users/RanzQ/gists{/gist_id}","starred_url":"https://api.github.com/users/RanzQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RanzQ/subscriptions","organizations_url":"https://api.github.com/users/RanzQ/orgs","repos_url":"https://api.github.com/users/RanzQ/repos","events_url":"https://api.github.com/users/RanzQ/events{/privacy}","received_events_url":"https://api.github.com/users/RanzQ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/masayuki0812/c3/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/masayuki0812/c3/labels/resolved%20maybe","name":"resolved maybe","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-27T11:34:59Z","updated_at":"2015-03-17T12:30:19Z","closed_at":null,"body":"I'd like to use the bar chart with a fixed x-axis min, max and values. But the padding and bar width calculation don't work nicely when min and max is set. Try modifying the example http://c3js.org/samples/chart_bar.html like this:\r\n```\r\nvar chart = c3.generate({\r\n    data: {\r\n        columns: [\r\n            ['data1', 30],\r\n            ['data2', 30]\r\n        ],\r\n        type: 'bar'\r\n    },\r\n    axis: {\r\n        x: {\r\n            min: 0,\r\n            max: 5,\r\n            tick: {\r\n                values: [0, 1, 2, 3, 4, 5]\r\n            }\r\n        }\r\n    }\r\n});\r\n```\r\nWould it be possible to base the calculations on min-max range and tick-count rather than point count in this case?"},"comment":{"url":"https://api.github.com/repos/masayuki0812/c3/issues/comments/82320404","html_url":"https://github.com/masayuki0812/c3/issues/945#issuecomment-82320404","issue_url":"https://api.github.com/repos/masayuki0812/c3/issues/945","id":82320404,"user":{"login":"masayuki0812","id":1142423,"avatar_url":"https://avatars.githubusercontent.com/u/1142423?v=3","gravatar_id":"","url":"https://api.github.com/users/masayuki0812","html_url":"https://github.com/masayuki0812","followers_url":"https://api.github.com/users/masayuki0812/followers","following_url":"https://api.github.com/users/masayuki0812/following{/other_user}","gists_url":"https://api.github.com/users/masayuki0812/gists{/gist_id}","starred_url":"https://api.github.com/users/masayuki0812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masayuki0812/subscriptions","organizations_url":"https://api.github.com/users/masayuki0812/orgs","repos_url":"https://api.github.com/users/masayuki0812/repos","events_url":"https://api.github.com/users/masayuki0812/events{/privacy}","received_events_url":"https://api.github.com/users/masayuki0812/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T12:30:19Z","updated_at":"2015-03-17T12:30:19Z","body":"`0.4.10` has been released, so let me close at the moment. Thanks."}}