{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega-lite/issues/981","repository_url":"https://api.github.com/repos/vega/vega-lite","labels_url":"https://api.github.com/repos/vega/vega-lite/issues/981/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega-lite/issues/981/comments","events_url":"https://api.github.com/repos/vega/vega-lite/issues/981/events","html_url":"https://github.com/vega/vega-lite/issues/981","id":128270541,"number":981,"title":"Layout calculation incorrect when we auto-set domain for timeUnit","user":{"login":"kanitw","id":111269,"avatar_url":"https://avatars.githubusercontent.com/u/111269?v=3","gravatar_id":"","url":"https://api.github.com/users/kanitw","html_url":"https://github.com/kanitw","followers_url":"https://api.github.com/users/kanitw/followers","following_url":"https://api.github.com/users/kanitw/following{/other_user}","gists_url":"https://api.github.com/users/kanitw/gists{/gist_id}","starred_url":"https://api.github.com/users/kanitw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanitw/subscriptions","organizations_url":"https://api.github.com/users/kanitw/orgs","repos_url":"https://api.github.com/users/kanitw/repos","events_url":"https://api.github.com/users/kanitw/events{/privacy}","received_events_url":"https://api.github.com/users/kanitw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vega/vega-lite/labels/bug","name":"bug","color":"5319e7"},{"url":"https://api.github.com/repos/vega/vega-lite/labels/Easy","name":"Easy","color":"bfe5bf"},{"url":"https://api.github.com/repos/vega/vega-lite/labels/help-wanted","name":"help-wanted","color":"006b75"},{"url":"https://api.github.com/repos/vega/vega-lite/labels/Priority/3-Medium","name":"Priority/3-Medium","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"bobocandys","id":7077283,"avatar_url":"https://avatars.githubusercontent.com/u/7077283?v=3","gravatar_id":"","url":"https://api.github.com/users/bobocandys","html_url":"https://github.com/bobocandys","followers_url":"https://api.github.com/users/bobocandys/followers","following_url":"https://api.github.com/users/bobocandys/following{/other_user}","gists_url":"https://api.github.com/users/bobocandys/gists{/gist_id}","starred_url":"https://api.github.com/users/bobocandys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobocandys/subscriptions","organizations_url":"https://api.github.com/users/bobocandys/orgs","repos_url":"https://api.github.com/users/bobocandys/repos","events_url":"https://api.github.com/users/bobocandys/events{/privacy}","received_events_url":"https://api.github.com/users/bobocandys/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/vega/vega-lite/milestones/22","html_url":"https://github.com/vega/vega-lite/milestones/1.0.x%20Important%20Patches","labels_url":"https://api.github.com/repos/vega/vega-lite/milestones/22/labels","id":1569609,"number":22,"title":"1.0.x Important Patches","description":"","creator":{"login":"kanitw","id":111269,"avatar_url":"https://avatars.githubusercontent.com/u/111269?v=3","gravatar_id":"","url":"https://api.github.com/users/kanitw","html_url":"https://github.com/kanitw","followers_url":"https://api.github.com/users/kanitw/followers","following_url":"https://api.github.com/users/kanitw/following{/other_user}","gists_url":"https://api.github.com/users/kanitw/gists{/gist_id}","starred_url":"https://api.github.com/users/kanitw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanitw/subscriptions","organizations_url":"https://api.github.com/users/kanitw/orgs","repos_url":"https://api.github.com/users/kanitw/repos","events_url":"https://api.github.com/users/kanitw/events{/privacy}","received_events_url":"https://api.github.com/users/kanitw/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":1,"state":"open","created_at":"2016-02-08T07:39:58Z","updated_at":"2016-02-24T20:57:02Z","due_on":"2016-03-13T08:00:00Z","closed_at":null},"comments":2,"created_at":"2016-01-22T23:32:35Z","updated_at":"2016-02-28T05:25:44Z","closed_at":null,"body":"```\r\n{\r\n  \"description\": \"Line chart of Horsepower over time\",\r\n  \"data\": {\"url\": \"data/cars.json\"},\r\n  \"mark\": \"line\",\r\n  \"encoding\": {\r\n    \"x\": {\"field\": \"Year\", \"type\": \"temporal\", \"timeUnit\": \"month\"},\r\n    \"y\": {\"field\": \"Horsepower\", \"type\": \"quantitative\", \"aggregate\": \"mean\"}\r\n  }\r\n}\r\n```\r\n\r\n<img width=\"319\" alt=\"vega_editor\" src=\"https://cloud.githubusercontent.com/assets/111269/12525909/2c0fcb1a-c11d-11e5-8c50-a62aca237283.png\">\r\n\r\nOur current formula have `cellWidth` depends on cardinality of x field.  \r\nHowever, in this case, it should use 12 instead of cardinality.   \r\n\r\n- [ ] modify the layout formula to use fixed cardinality when we automatically augment domain"},"comment":{"url":"https://api.github.com/repos/vega/vega-lite/issues/comments/189785501","html_url":"https://github.com/vega/vega-lite/issues/981#issuecomment-189785501","issue_url":"https://api.github.com/repos/vega/vega-lite/issues/981","id":189785501,"user":{"login":"kanitw","id":111269,"avatar_url":"https://avatars.githubusercontent.com/u/111269?v=3","gravatar_id":"","url":"https://api.github.com/users/kanitw","html_url":"https://github.com/kanitw","followers_url":"https://api.github.com/users/kanitw/followers","following_url":"https://api.github.com/users/kanitw/following{/other_user}","gists_url":"https://api.github.com/users/kanitw/gists{/gist_id}","starred_url":"https://api.github.com/users/kanitw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanitw/subscriptions","organizations_url":"https://api.github.com/users/kanitw/orgs","repos_url":"https://api.github.com/users/kanitw/repos","events_url":"https://api.github.com/users/kanitw/events{/privacy}","received_events_url":"https://api.github.com/users/kanitw/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T05:25:44Z","updated_at":"2016-02-28T05:25:44Z","body":"- [ ] need to revise this after finishing the first sketch for composition"}}