Revise like bins and colour scale

This commit is contained in:
Maciej Ziarkowski 2019-10-31 13:22:34 +00:00
parent c2ea90a372
commit bf1a8def6e
2 changed files with 16 additions and 11 deletions

View File

@ -226,24 +226,28 @@
<PolygonSymbolizer fill="#bd0026" />
</Rule>
<Rule>
<Filter>[likes] &gt;= 70 and [likes] &lt; 100</Filter>
<Filter>[likes] &gt;= 50 and [likes] &lt; 100</Filter>
<PolygonSymbolizer fill="#e31a1c" />
</Rule>
<Rule>
<Filter>[likes] &gt;= 40 and [likes] &lt; 70</Filter>
<Filter>[likes] &gt;= 20 and [likes] &lt; 50</Filter>
<PolygonSymbolizer fill="#fc4e2a" />
</Rule>
<Rule>
<Filter>[likes] &gt;= 15 and [likes] &lt; 40</Filter>
<Filter>[likes] &gt;= 10 and [likes] &lt; 20</Filter>
<PolygonSymbolizer fill="#fd8d3c" />
</Rule>
<Rule>
<Filter>[likes] &gt;= 5 and [likes] &lt; 15</Filter>
<Filter>[likes] &gt;= 3 and [likes] &lt; 10</Filter>
<PolygonSymbolizer fill="#feb24c" />
</Rule>
<Rule>
<Filter>[likes] &lt; 5</Filter>
<Filter>[likes] = 2</Filter>
<PolygonSymbolizer fill="#fed976" />
</Rule>
<Rule>
<Filter>[likes] = 1</Filter>
<PolygonSymbolizer fill="#ffe8a9" />
</Rule>
</Style>
</Map>

View File

@ -102,12 +102,13 @@ const LEGEND_CONFIG = {
like: {
title: 'Like Me',
elements: [
{ color: '#bd0026', text: '👍👍👍 ≥100' },
{ color: '#e31a1c', text: '👍👍 7099' },
{ color: '#fc4e2a', text: '👍 40-69' },
{ color: '#fd8d3c', text: '👍 15-39' },
{ color: '#feb24c', text: '👍 5-14' },
{ color: '#fed976', text: '👍 1-4' },
{ color: '#bd0026', text: '👍👍👍👍 100+' },
{ color: '#e31a1c', text: '👍👍👍 5099' },
{ color: '#fc4e2a', text: '👍👍 2049' },
{ color: '#fd8d3c', text: '👍👍 1019' },
{ color: '#feb24c', text: '👍 39' },
{ color: '#fed976', text: '👍 2' },
{ color: '#ffe8a9', text: '👍 1'}
]
}
};