{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega-lite/issues/3911","repository_url":"https://api.github.com/repos/vega/vega-lite","labels_url":"https://api.github.com/repos/vega/vega-lite/issues/3911/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega-lite/issues/3911/comments","events_url":"https://api.github.com/repos/vega/vega-lite/issues/3911/events","html_url":"https://github.com/vega/vega-lite/issues/3911","id":334317717,"node_id":"MDU6SXNzdWUzMzQzMTc3MTc=","number":3911,"title":"log scale with zero data should give a better warning","user":{"login":"jowens","id":976970,"node_id":"MDQ6VXNlcjk3Njk3MA==","avatar_url":"https://avatars0.githubusercontent.com/u/976970?v=4","gravatar_id":"","url":"https://api.github.com/users/jowens","html_url":"https://github.com/jowens","followers_url":"https://api.github.com/users/jowens/followers","following_url":"https://api.github.com/users/jowens/following{/other_user}","gists_url":"https://api.github.com/users/jowens/gists{/gist_id}","starred_url":"https://api.github.com/users/jowens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jowens/subscriptions","organizations_url":"https://api.github.com/users/jowens/orgs","repos_url":"https://api.github.com/users/jowens/repos","events_url":"https://api.github.com/users/jowens/events{/privacy}","received_events_url":"https://api.github.com/users/jowens/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-21T02:46:18Z","updated_at":"2018-06-21T03:16:43Z","closed_at":"2018-06-21T03:16:43Z","author_association":"NONE","body":"In Altair, I had a column of data that I plotted on a log scale:\r\n\r\n```\r\nsh = Chart(df).mark_point().encode(\r\n    x='Launch:T',\r\n    y=Y('Pixel/unified shader count:Q',\r\n        scale=Scale(type='log'),\r\n        ),\r\n```\r\n\r\nand a zero snuck into the column that I didn't know about and the debugging of that took a really really long time. Here's what Altair output looked like:\r\n\r\n![image](https://user-images.githubusercontent.com/976970/41695131-819787c0-74c2-11e8-9b7c-1ebce8ab1a65.png)\r\n\r\nI guess I would have expected that the zeroes would be silently dropped OR the console would have thrown a warning ... anyway, the Altair output was perplexing. One zero out of several hundred data points made everything plot on a single line.\r\n\r\n@jakevdp suggested this was the right place to raise the issue (https://github.com/altair-viz/altair/issues/953)."},"comment":{"url":"https://api.github.com/repos/vega/vega-lite/issues/comments/398963346","html_url":"https://github.com/vega/vega-lite/issues/3911#issuecomment-398963346","issue_url":"https://api.github.com/repos/vega/vega-lite/issues/3911","id":398963346,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODk2MzM0Ng==","user":{"login":"domoritz","id":589034,"node_id":"MDQ6VXNlcjU4OTAzNA==","avatar_url":"https://avatars2.githubusercontent.com/u/589034?v=4","gravatar_id":"","url":"https://api.github.com/users/domoritz","html_url":"https://github.com/domoritz","followers_url":"https://api.github.com/users/domoritz/followers","following_url":"https://api.github.com/users/domoritz/following{/other_user}","gists_url":"https://api.github.com/users/domoritz/gists{/gist_id}","starred_url":"https://api.github.com/users/domoritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domoritz/subscriptions","organizations_url":"https://api.github.com/users/domoritz/orgs","repos_url":"https://api.github.com/users/domoritz/repos","events_url":"https://api.github.com/users/domoritz/events{/privacy}","received_events_url":"https://api.github.com/users/domoritz/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T03:16:43Z","updated_at":"2018-06-21T03:16:43Z","author_association":"MEMBER","body":"One thing we could do in Vega-Lite is automatically filter out values less or equal to zero (in https://github.com/vega/vega-lite/blob/master/src/compile/data/filterinvalid.ts) but that seems like it could have all kinds of bad effects.\r\n\r\nYes, I think this needs to be in Vega itself. "}}
{"actor":{"display_login":"domoritz"}}