{"action":"created","issue":{"url":"https://api.github.com/repos/d3/d3-scale/issues/45","repository_url":"https://api.github.com/repos/d3/d3-scale","labels_url":"https://api.github.com/repos/d3/d3-scale/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/d3/d3-scale/issues/45/comments","events_url":"https://api.github.com/repos/d3/d3-scale/issues/45/events","html_url":"https://github.com/d3/d3-scale/issues/45","id":124577076,"number":45,"title":"Helper for constructing segmented domains?","user":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-02T06:03:26Z","updated_at":"2016-06-06T19:24:05Z","closed_at":null,"body":"Related mbostock/d3#2639."},"comment":{"url":"https://api.github.com/repos/d3/d3-scale/issues/comments/224061047","html_url":"https://github.com/d3/d3-scale/issues/45#issuecomment-224061047","issue_url":"https://api.github.com/repos/d3/d3-scale/issues/45","id":224061047,"user":{"login":"mbostock","id":230541,"avatar_url":"https://avatars.githubusercontent.com/u/230541?v=3","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T19:24:05Z","updated_at":"2016-06-06T19:24:05Z","body":"/cc @cscheid\r\n\r\nI’ve implemented continuous variants of the diverging and sequential ColorBrewer scales in [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic). I’m using uniform B-splines in RGB color space to convert the discrete color schemes to continuous functions; see [PiYG, for example](http://bl.ocks.org/mbostock/048d21cf747371b11884f75ad896e5a5). It’s ever-so-slightly muddier than the original color schemes, and you still need to take care if you re-quantize the color scales (the ColorBrewer scales sensibly crop the output range for smaller *n*, reducing contrast). But it seems to work quite well.\r\n\r\n(I’m considering extending this technique to the Viridis color scales, since those are currently defined as 256 discrete colors.)\r\n\r\nI have an idea for making it easier to derive quantize and quantile scales from sequential scales, #61.\r\n\r\nHowever, there’s a related design issue which is that you can’t easily apply a log or pow transform to a quantize or sequential scale, #62. I don’t immediately have a solution to this problem, but hopefully it will come to me…"}}
{"actor":{"display_login":"mbostock"}}