{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega-lite/issues/1582","repository_url":"https://api.github.com/repos/vega/vega-lite","labels_url":"https://api.github.com/repos/vega/vega-lite/issues/1582/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega-lite/issues/1582/comments","events_url":"https://api.github.com/repos/vega/vega-lite/issues/1582/events","html_url":"https://github.com/vega/vega-lite/issues/1582","id":182771058,"number":1582,"title":"While using log scale the color bars are not shown","user":{"login":"chananelp","id":16744321,"avatar_url":"https://avatars.githubusercontent.com/u/16744321?v=3","gravatar_id":"","url":"https://api.github.com/users/chananelp","html_url":"https://github.com/chananelp","followers_url":"https://api.github.com/users/chananelp/followers","following_url":"https://api.github.com/users/chananelp/following{/other_user}","gists_url":"https://api.github.com/users/chananelp/gists{/gist_id}","starred_url":"https://api.github.com/users/chananelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chananelp/subscriptions","organizations_url":"https://api.github.com/users/chananelp/orgs","repos_url":"https://api.github.com/users/chananelp/repos","events_url":"https://api.github.com/users/chananelp/events{/privacy}","received_events_url":"https://api.github.com/users/chananelp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T12:04:18Z","updated_at":"2016-10-13T23:38:05Z","closed_at":null,"body":"While trying this: \r\n```\r\n{\r\n  \"description\": \"A bar chart showing the US population distribution of age groups and gender in 2000.\",\r\n  \"data\": { \"url\": \"data/population.json\"},\r\n  \r\n  \"mark\": \"bar\",\r\n  \"encoding\": {\r\n    \"y\": {\r\n      \"aggregate\": \"sum\", \"field\": \"people\", \"type\": \"quantitative\",\r\n      \"axis\": {\"title\": \"population\"},\r\n      \"scale\": {\"type\": \"log\"}\r\n    },\r\n    \"x\": {\r\n      \"field\": \"age\", \"type\": \"ordinal\",\r\n      \"scale\": {\"bandSize\": 17}\r\n    },\r\n    \"color\": {\r\n      \"field\": \"age\", \"type\": \"nominal\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nI see no graph.\r\n(May be related to [1518](https://github.com/vega/vega-lite/issues/1518))\r\n\r\nIf you change the `log` with `linear` all is OK - a colorful bar chart:\r\n![image](https://cloud.githubusercontent.com/assets/16744321/19348336/155e4f54-9156-11e6-8eb7-9946a94add62.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vega/vega-lite/issues/comments/253670597","html_url":"https://github.com/vega/vega-lite/issues/1582#issuecomment-253670597","issue_url":"https://api.github.com/repos/vega/vega-lite/issues/1582","id":253670597,"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-10-13T23:38:05Z","updated_at":"2016-10-13T23:38:05Z","body":"Hi, Thanks for reporting. \r\n\r\nFirst of all, `bar` mark [should be avoided]( http://www.graphpad.com/support/faqid/1477/) if you wish to use log scale,\r\nsince there is no zero value on the log scale to the bar's start value.\r\n\r\nIt's better to use `point` mark like the following:\r\n\r\n<img width=\"913\" alt=\"vega_editor\" src=\"https://cloud.githubusercontent.com/assets/111269/19370830/292bb44c-9163-11e6-8498-00bc0bd600b2.png\">\r\n\r\nThat said, I'll keep this issue open as I think we should throw error and possibly change the default behavior for this case. \r\n\r\n@domoritz @arvind – I think I'll always disable stacking for log scale so at least something is rendered. "}}
{"actor":{"display_login":"kanitw"}}