{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/victory-bar/issues/73","labels_url":"https://api.github.com/repos/FormidableLabs/victory-bar/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/victory-bar/issues/73/comments","events_url":"https://api.github.com/repos/FormidableLabs/victory-bar/issues/73/events","html_url":"https://github.com/FormidableLabs/victory-bar/issues/73","id":124288565,"number":73,"title":"automatic bar widths","user":{"login":"boygirl","id":3719995,"avatar_url":"https://avatars.githubusercontent.com/u/3719995?v=3","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-30T00:52:42Z","updated_at":"2016-01-30T20:08:08Z","closed_at":null,"body":"Bars should fill the space of the chart. Wider bars for fewer data points, thinner bars for more data."},"comment":{"url":"https://api.github.com/repos/FormidableLabs/victory-bar/issues/comments/177287926","html_url":"https://github.com/FormidableLabs/victory-bar/issues/73#issuecomment-177287926","issue_url":"https://api.github.com/repos/FormidableLabs/victory-bar/issues/73","id":177287926,"user":{"login":"boygirl","id":3719995,"avatar_url":"https://avatars.githubusercontent.com/u/3719995?v=3","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":"2016-01-30T20:08:08Z","updated_at":"2016-01-30T20:08:08Z","body":"Right now bar layout is totally naive. We are placing the center bar in each group in the correct spot on a axis and laying out the rest of its group around it based on the `width` and `padding` properties of the `style.data` object. This means that with lots of data plotted in a small width, you can end up with bar groups overlapping each other, and with groups of bars rendering outside of the axis area. So this ticket has two parts.\r\n\r\n1) (pretty easy) When `width` and `padding` aren't explicitly specified, calculate values that will keep the bar groups from overlapping each other\r\n\r\n2) (harder) if a domain is not given, calculate a domain such that the center of the first and last bar group is far enough away from the end of the axis that the bar groups do not extend past the axis. "}}