{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega-lite/issues/1601","repository_url":"https://api.github.com/repos/vega/vega-lite","labels_url":"https://api.github.com/repos/vega/vega-lite/issues/1601/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega-lite/issues/1601/comments","events_url":"https://api.github.com/repos/vega/vega-lite/issues/1601/events","html_url":"https://github.com/vega/vega-lite/issues/1601","id":184259683,"node_id":"MDU6SXNzdWUxODQyNTk2ODM=","number":1601,"title":"Encoding's `datum` for constant values in data domain that still pass through scales","user":{"login":"kanitw","id":111269,"node_id":"MDQ6VXNlcjExMTI2OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/111269?v=4","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":[{"id":149879845,"node_id":"MDU6TGFiZWwxNDk4Nzk4NDU=","url":"https://api.github.com/repos/vega/vega-lite/labels/Help%20wanted","name":"Help wanted","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/vega/vega-lite/milestones/52","html_url":"https://github.com/vega/vega-lite/milestone/52","labels_url":"https://api.github.com/repos/vega/vega-lite/milestones/52/labels","id":2786435,"node_id":"MDk6TWlsZXN0b25lMjc4NjQzNQ==","number":52,"title":"2.x Visual Encoding Patches","description":"","creator":{"login":"kanitw","id":111269,"node_id":"MDQ6VXNlcjExMTI2OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/111269?v=4","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":32,"closed_issues":46,"state":"open","created_at":"2017-09-22T23:07:48Z","updated_at":"2018-06-12T23:41:29Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-10-20T15:19:25Z","updated_at":"2018-06-15T16:58:58Z","closed_at":null,"author_association":"MEMBER","body":"`value` in fieldDef set the range value directly. \r\n\r\nIf users wanna provide domain value that needs to be scaled, we need to add another property.\r\nFrom a conversation long time ago, we decided that this property is `datum`. \r\n\r\nTo clarify, a `value` property in VL produces a Vega ValueRef `{value: value}`. \r\nMeanwhile, a `datum` property in VL should produces a Vega Value Ref `{scale:..., value: datum}` and use scale from relevant layers.  \r\n\r\ncc: @swojit "},"comment":{"url":"https://api.github.com/repos/vega/vega-lite/issues/comments/397682579","html_url":"https://github.com/vega/vega-lite/issues/1601#issuecomment-397682579","issue_url":"https://api.github.com/repos/vega/vega-lite/issues/1601","id":397682579,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzY4MjU3OQ==","user":{"login":"davidanthoff","id":1036561,"node_id":"MDQ6VXNlcjEwMzY1NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/1036561?v=4","gravatar_id":"","url":"https://api.github.com/users/davidanthoff","html_url":"https://github.com/davidanthoff","followers_url":"https://api.github.com/users/davidanthoff/followers","following_url":"https://api.github.com/users/davidanthoff/following{/other_user}","gists_url":"https://api.github.com/users/davidanthoff/gists{/gist_id}","starred_url":"https://api.github.com/users/davidanthoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidanthoff/subscriptions","organizations_url":"https://api.github.com/users/davidanthoff/orgs","repos_url":"https://api.github.com/users/davidanthoff/repos","events_url":"https://api.github.com/users/davidanthoff/events{/privacy}","received_events_url":"https://api.github.com/users/davidanthoff/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T16:58:58Z","updated_at":"2018-06-15T16:58:58Z","author_association":"NONE","body":"Just want to add a voice of support for this feature. Yes, there is a work around, but it seems to me that this is a very common use case (at least it came up very quickly when some students in my lab started to use Vega-Lite) so it would be great if there was a smooth way to handle this, as this issue proposes. It seems like one of those things that really ought to be dead simple :)"}}
{"actor":{"display_login":"davidanthoff"}}