Adjust likes colour scale and legend

This commit is contained in:
Maciej Ziarkowski 2019-10-28 15:55:40 +00:00
parent c63f42f921
commit 3cecb62993
2 changed files with 12 additions and 12 deletions

View File

@ -222,27 +222,27 @@
</Style>
<Style name="likes">
<Rule>
<Filter>[likes] &gt;= 10</Filter>
<Filter>[likes] &gt;= 100</Filter>
<PolygonSymbolizer fill="#bd0026" />
</Rule>
<Rule>
<Filter>[likes] &gt;= 5 and [likes] &lt; 10</Filter>
<Filter>[likes] &gt;= 70 and [likes] &lt; 100</Filter>
<PolygonSymbolizer fill="#e31a1c" />
</Rule>
<Rule>
<Filter>[likes] &gt;= 4 and [likes] &lt; 5</Filter>
<Filter>[likes] &gt;= 40 and [likes] &lt; 70</Filter>
<PolygonSymbolizer fill="#fc4e2a" />
</Rule>
<Rule>
<Filter>[likes] &gt;= 3 and [likes] &lt; 4</Filter>
<Filter>[likes] &gt;= 15 and [likes] &lt; 40</Filter>
<PolygonSymbolizer fill="#fd8d3c" />
</Rule>
<Rule>
<Filter>[likes] &gt;= 2 and [likes] &lt; 3</Filter>
<Filter>[likes] &gt;= 5 and [likes] &lt; 15</Filter>
<PolygonSymbolizer fill="#feb24c" />
</Rule>
<Rule>
<Filter>[likes] &lt; 2</Filter>
<Filter>[likes] &lt; 5</Filter>
<PolygonSymbolizer fill="#fed976" />
</Rule>
</Style>

View File

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