{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega/issues/590","repository_url":"https://api.github.com/repos/vega/vega","labels_url":"https://api.github.com/repos/vega/vega/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega/issues/590/comments","events_url":"https://api.github.com/repos/vega/vega/issues/590/events","html_url":"https://github.com/vega/vega/issues/590","id":161094360,"number":590,"title":"Incorrect stacked area when having null categories.","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/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-19T21:56:40Z","updated_at":"2016-06-19T22:44:14Z","closed_at":"2016-06-19T22:16:36Z","body":"spec: http://pastebin.com/ThRcjRFG\r\ndata: https://gist.githubusercontent.com/kanitw/59986cffa2f9bf36871ca07ab3e28c3e/raw/50b22fa5dfd3b5794de62856a2b958c1103b8dc6/data2.json\r\n\r\nThe `cat` field mixes null, numbers and strings.  This is originally created to produce `NaN` if we parse `cat` as `number` for debugging  [this PR](https://github.com/vega/datalib/pull/75).  \r\n\r\nNow the original problem is solved.  However, I tried changing `parse` from `number` to `string` and it produces incorrect stacking as shown below:\r\n\r\n![vega_editor](https://cloud.githubusercontent.com/assets/111269/16174871/dabfe080-358c-11e6-8901-1f94abdebac4.png)\r\n\r\nNote that I inspect the parsed data and found that `1` in `cat` remains `1` (a number).\r\n\r\n![developer_tools_-_http___localhost_1234__mode_vega](https://cloud.githubusercontent.com/assets/111269/16180046/8a03cbb0-362d-11e6-887d-4011ff803eaf.png)\r\n\r\nWhen I replace `1` with `\"1\"`, it no longer creates the problem.  \r\n\r\ndata: https://gist.githubusercontent.com/kanitw/59986cffa2f9bf36871ca07ab3e28c3e/raw/f2d9754f6cf3e01df7a3d811bb4dec6956df7982/data2b.json\r\n\r\nspec: the same, just replace data url with the new one\r\n\r\noutput: \r\n\r\n![vega_editor](https://cloud.githubusercontent.com/assets/111269/16180058/f289e476-362d-11e6-8412-6c90bb48a690.png)\r\n"},"comment":{"url":"https://api.github.com/repos/vega/vega/issues/comments/227024973","html_url":"https://github.com/vega/vega/issues/590#issuecomment-227024973","issue_url":"https://api.github.com/repos/vega/vega/issues/590","id":227024973,"user":{"login":"jheer","id":202799,"avatar_url":"https://avatars.githubusercontent.com/u/202799?v=3","gravatar_id":"","url":"https://api.github.com/users/jheer","html_url":"https://github.com/jheer","followers_url":"https://api.github.com/users/jheer/followers","following_url":"https://api.github.com/users/jheer/following{/other_user}","gists_url":"https://api.github.com/users/jheer/gists{/gist_id}","starred_url":"https://api.github.com/users/jheer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jheer/subscriptions","organizations_url":"https://api.github.com/users/jheer/orgs","repos_url":"https://api.github.com/users/jheer/repos","events_url":"https://api.github.com/users/jheer/events{/privacy}","received_events_url":"https://api.github.com/users/jheer/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T22:44:14Z","updated_at":"2016-06-19T22:44:14Z","body":"Addressed in vega/datalib commit [7a9439a](https://github.com/vega/datalib/commit/7a9439a80d9542ab20ca0563b5bc8e2591afc47f), slated for datalib 1.7.1 release."}}
{"actor":{"display_login":"jheer"}}