{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega/issues/1252","repository_url":"https://api.github.com/repos/vega/vega","labels_url":"https://api.github.com/repos/vega/vega/issues/1252/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega/issues/1252/comments","events_url":"https://api.github.com/repos/vega/vega/issues/1252/events","html_url":"https://github.com/vega/vega/issues/1252","id":316514657,"number":1252,"title":"Colors in sequential scale?","user":{"login":"kanitw","id":111269,"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":27175013,"url":"https://api.github.com/repos/vega/vega/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-21T18:38:45Z","updated_at":"2018-04-21T21:26:38Z","closed_at":"2018-04-21T20:59:12Z","author_association":"OWNER","body":"Please see the Vega output of the following VL spec:\r\n\r\n```\r\n{\r\n  \"layer\": [\r\n    {\r\n      \"mark\": \"rect\",\r\n      \"encoding\": {\r\n        \"color\": {\r\n          \"type\": \"quantitative\", \"aggregate\": \"mean\", \"field\": \"precipitation\",\r\n          \"scale\": {\r\n            \"domain\": [15, 2, 0.1, 0],\r\n            \"range\": [\"purple\", \"darkorange\", \"yellow\", \"white\"]\r\n          }\r\n        }\r\n      }\r\n    },\r\n    {\r\n      \"mark\": \"text\",\r\n      \"encoding\": {\r\n        \"text\": {\"type\": \"quantitative\", \"aggregate\": \"mean\", \"field\": \"precipitation\"}\r\n      }\r\n    }\r\n  ],\r\n  \"data\": {\r\n    \"url\": \"https://vega.github.io/vega-datasets/data/seattle-weather.csv\",\r\n    \"format\": {\"type\": \"csv\"}\r\n  },\r\n  \"encoding\": {\r\n    \"x\": {\"type\": \"ordinal\", \"field\": \"date\", \"timeUnit\": \"day\"},\r\n    \"y\": {\"type\": \"ordinal\", \"field\": \"date\", \"timeUnit\": \"month\"}\r\n  },\r\n  \"$schema\": \"https://vega.github.io/schema/vega-lite/v2.3.0.json\"\r\n}\r\n```\r\n\r\n\r\n![visualization 4](https://user-images.githubusercontent.com/781659/39074642-137419f2-44a7-11e8-9585-12e132d26c2d.png)\r\n\r\nNotice in particular that Wednesdays in June have a value of 0.14, but the color is associated with the value 0 in the scale (or somewhere between 0 and 0.1 at best)\r\n\r\nOriginally from https://github.com/vega/vega-lite/issues/3631"},"comment":{"url":"https://api.github.com/repos/vega/vega/issues/comments/383332705","html_url":"https://github.com/vega/vega/issues/1252#issuecomment-383332705","issue_url":"https://api.github.com/repos/vega/vega/issues/1252","id":383332705,"user":{"login":"kanitw","id":111269,"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},"created_at":"2018-04-21T21:26:38Z","updated_at":"2018-04-21T21:26:38Z","author_association":"OWNER","body":"For Vega-Lite, we uses sequential by default.  One question is whether it makes sense to auto change the default to linear for color, if `domain` is specified with more than 2 values?"}}
{"actor":{"display_login":"kanitw"}}