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" /> <PolygonSymbolizer fill="#bd0026" />
</Rule> </Rule>
<Rule> <Rule>
<Filter>[likes] &gt;= 70 and [likes] &lt; 100</Filter> <Filter>[likes] &gt;= 50 and [likes] &lt; 100</Filter>
<PolygonSymbolizer fill="#e31a1c" /> <PolygonSymbolizer fill="#e31a1c" />
</Rule> </Rule>
<Rule> <Rule>
<Filter>[likes] &gt;= 40 and [likes] &lt; 70</Filter> <Filter>[likes] &gt;= 20 and [likes] &lt; 50</Filter>
<PolygonSymbolizer fill="#fc4e2a" /> <PolygonSymbolizer fill="#fc4e2a" />
</Rule> </Rule>
<Rule> <Rule>
<Filter>[likes] &gt;= 15 and [likes] &lt; 40</Filter> <Filter>[likes] &gt;= 10 and [likes] &lt; 20</Filter>
<PolygonSymbolizer fill="#fd8d3c" /> <PolygonSymbolizer fill="#fd8d3c" />
</Rule> </Rule>
<Rule> <Rule>
<Filter>[likes] &gt;= 5 and [likes] &lt; 15</Filter> <Filter>[likes] &gt;= 3 and [likes] &lt; 10</Filter>
<PolygonSymbolizer fill="#feb24c" /> <PolygonSymbolizer fill="#feb24c" />
</Rule> </Rule>
<Rule> <Rule>
<Filter>[likes] &lt; 5</Filter> <Filter>[likes] = 2</Filter>
<PolygonSymbolizer fill="#fed976" /> <PolygonSymbolizer fill="#fed976" />
</Rule> </Rule>
<Rule>
<Filter>[likes] = 1</Filter>
<PolygonSymbolizer fill="#ffe8a9" />
</Rule>
</Style> </Style>
</Map> </Map>

View File

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