{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/5565","labels_url":"https://api.github.com/repos/elastic/kibana/issues/5565/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/5565/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/5565/events","html_url":"https://github.com/elastic/kibana/pull/5565","id":120340837,"number":5565,"title":"Switch color generation function to variation on seed colors","user":{"login":"rashidkpc","id":1250387,"avatar_url":"https://avatars.githubusercontent.com/u/1250387?v=3","gravatar_id":"","url":"https://api.github.com/users/rashidkpc","html_url":"https://github.com/rashidkpc","followers_url":"https://api.github.com/users/rashidkpc/followers","following_url":"https://api.github.com/users/rashidkpc/following{/other_user}","gists_url":"https://api.github.com/users/rashidkpc/gists{/gist_id}","starred_url":"https://api.github.com/users/rashidkpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashidkpc/subscriptions","organizations_url":"https://api.github.com/users/rashidkpc/orgs","repos_url":"https://api.github.com/users/rashidkpc/repos","events_url":"https://api.github.com/users/rashidkpc/events{/privacy}","received_events_url":"https://api.github.com/users/rashidkpc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/review","name":"review","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"lukasolson","id":1178348,"avatar_url":"https://avatars.githubusercontent.com/u/1178348?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasolson","html_url":"https://github.com/lukasolson","followers_url":"https://api.github.com/users/lukasolson/followers","following_url":"https://api.github.com/users/lukasolson/following{/other_user}","gists_url":"https://api.github.com/users/lukasolson/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasolson/subscriptions","organizations_url":"https://api.github.com/users/lukasolson/orgs","repos_url":"https://api.github.com/users/lukasolson/repos","events_url":"https://api.github.com/users/lukasolson/events{/privacy}","received_events_url":"https://api.github.com/users/lukasolson/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-04T06:15:56Z","updated_at":"2015-12-07T18:26:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/kibana/pulls/5565","html_url":"https://github.com/elastic/kibana/pull/5565","diff_url":"https://github.com/elastic/kibana/pull/5565.diff","patch_url":"https://github.com/elastic/kibana/pull/5565.patch"},"body":"This function programmatically varies the brightness of the the seed colors allowing us to eventually allow the user to swap the seed color list for another palette and automatically generate new colors that still fit their theme. \r\n\r\nAt some point we could even use the existing colors of a chart to seed new colors for new series that appear. For example, in @lukasolson's color picker pull, if a user runs a terms agg and gives every series in the visualization a yellow tone, but maybe the 5th item changes at some point, the color generated would not be a yellow tone, it would probably be blue. With the proposed scheme it could be a yellow variation.\r\n\r\nOld algorithm, once past the static list. While this looks pleasant when stacked like this, the colors in the upper range are very similar due to the nature of equidistant HSV hues. It is practically impossible to differentiate the greens here.\r\n<img width=\"507\" alt=\"screen shot 2015-12-03 at 10 12 09 pm\" src=\"https://cloud.githubusercontent.com/assets/1250387/11583150/a2131620-9a0b-11e5-85c1-8c0a4114e4f1.png\">\r\n\r\n\r\nNew algorithm. Much less linear. The colors are all variations on the seed, but much more discernable than the hue varied pattern above. We could make the seed bigger to make this even better, but this is a start.\r\n<img width=\"507\" alt=\"screen shot 2015-12-03 at 7 11 50 pm\" src=\"https://cloud.githubusercontent.com/assets/1250387/11583162/b9a78fc8-9a0b-11e5-8906-795cb115df31.png\">\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/162615000","html_url":"https://github.com/elastic/kibana/pull/5565#issuecomment-162615000","issue_url":"https://api.github.com/repos/elastic/kibana/issues/5565","id":162615000,"user":{"login":"lukasolson","id":1178348,"avatar_url":"https://avatars.githubusercontent.com/u/1178348?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasolson","html_url":"https://github.com/lukasolson","followers_url":"https://api.github.com/users/lukasolson/followers","following_url":"https://api.github.com/users/lukasolson/following{/other_user}","gists_url":"https://api.github.com/users/lukasolson/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasolson/subscriptions","organizations_url":"https://api.github.com/users/lukasolson/orgs","repos_url":"https://api.github.com/users/lukasolson/repos","events_url":"https://api.github.com/users/lukasolson/events{/privacy}","received_events_url":"https://api.github.com/users/lukasolson/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T18:26:41Z","updated_at":"2015-12-07T18:26:41Z","body":"This LGTM. Honestly, I think the older colors were a bit more pleasant, but usability here is better than how pretty the colors are."}}