{"action":"created","issue":{"url":"https://api.github.com/repos/zimmicz/web-cartography-choropleth-map/issues/1","labels_url":"https://api.github.com/repos/zimmicz/web-cartography-choropleth-map/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/zimmicz/web-cartography-choropleth-map/issues/1/comments","events_url":"https://api.github.com/repos/zimmicz/web-cartography-choropleth-map/issues/1/events","html_url":"https://github.com/zimmicz/web-cartography-choropleth-map/issues/1","id":52141622,"number":1,"title":"Jak zvolit barvy?","user":{"login":"zimmicz","id":6543598,"avatar_url":"https://avatars.githubusercontent.com/u/6543598?v=3","gravatar_id":"","url":"https://api.github.com/users/zimmicz","html_url":"https://github.com/zimmicz","followers_url":"https://api.github.com/users/zimmicz/followers","following_url":"https://api.github.com/users/zimmicz/following{/other_user}","gists_url":"https://api.github.com/users/zimmicz/gists{/gist_id}","starred_url":"https://api.github.com/users/zimmicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimmicz/subscriptions","organizations_url":"https://api.github.com/users/zimmicz/orgs","repos_url":"https://api.github.com/users/zimmicz/repos","events_url":"https://api.github.com/users/zimmicz/events{/privacy}","received_events_url":"https://api.github.com/users/zimmicz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zimmicz/web-cartography-choropleth-map/labels/help+wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/zimmicz/web-cartography-choropleth-map/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-12-16T17:24:55Z","updated_at":"2015-01-02T10:13:13Z","closed_at":null,"body":"@Darkless012 zatím jsem si nastyloval všechny výběry na modrou barvu, ale barvy musím nějak určit, abych z nich pak mohl dělat ten barevný přechod. Díval jsem se na [chroma.js](http://old.driven-by-data.net/about/chromajs/#/0), ale není mi jasné, jestli si můžu zvolit třeba červenou/žlutou/modrou/zelenou, nebo to musí být nějaké speciální barvy, aby se to z nich dalo spočítat. Nevíš?"},"comment":{"url":"https://api.github.com/repos/zimmicz/web-cartography-choropleth-map/issues/comments/68517537","html_url":"https://github.com/zimmicz/web-cartography-choropleth-map/issues/1#issuecomment-68517537","issue_url":"https://api.github.com/repos/zimmicz/web-cartography-choropleth-map/issues/1","id":68517537,"user":{"login":"zimmicz","id":6543598,"avatar_url":"https://avatars.githubusercontent.com/u/6543598?v=3","gravatar_id":"","url":"https://api.github.com/users/zimmicz","html_url":"https://github.com/zimmicz","followers_url":"https://api.github.com/users/zimmicz/followers","following_url":"https://api.github.com/users/zimmicz/following{/other_user}","gists_url":"https://api.github.com/users/zimmicz/gists{/gist_id}","starred_url":"https://api.github.com/users/zimmicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimmicz/subscriptions","organizations_url":"https://api.github.com/users/zimmicz/orgs","repos_url":"https://api.github.com/users/zimmicz/repos","events_url":"https://api.github.com/users/zimmicz/events{/privacy}","received_events_url":"https://api.github.com/users/zimmicz/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T10:13:13Z","updated_at":"2015-01-02T10:13:13Z","body":"@Darkless012 jsem asi po Vánocích trochu zabržděnej, ale mám problém :)\r\nVyberu si dva státy, jeden má max. počet okresů (254), druhý minimální (3). Normálně určuju průhlednost barvy tak, že vezmu aktuální hodnota / hodnota vybraného státu = % průhlednosti. To funguje pouze tam, kde je výsledek menší než 1. Když udělám totiž např. 81 / 3 => 27, jsem v loji. Jak bys to udělal? Nic mě nechce napadnout, dělat něco jako 1 / poměr nelze, to zase v některých případech vrací číslo > 1."}}