Skip to content

Commit

Permalink
FR pop
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaffuri committed Oct 23, 2023
1 parent 093c746 commit 04265b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/FR_pop.html
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,12 @@
//legend
app.layers[0].styles[0].styles[0].legends.push(
new gviz.ColorLegend({
title: 'Population change',
title: 'Changement de population',
width: 200,
ticks: 3,
colorRamp: (t) => colR(1 - Math.floor(t * nb) / nb),
tickFormat: 'text',
fun: (t, r, s) => (t == 0 ? 'Decrease' : t == 1 ? 'Increase' : 'Stable'),
fun: (t, r, s) => (t == 0 ? 'Baisse' : t == 1 ? 'Hausse' : 'Stabilité'),
})
)
} else if (layCode == 'sizeCh') {
Expand Down Expand Up @@ -553,7 +553,7 @@
//legend
app.layers[0].styles[0].legends.push(
new gviz.SizeLegend({
title: 'Population change',
title: 'Changement de population',
exaggerationFactor: 0.9,
shape: 'circle',
labelUnitText: 'habitants',
Expand Down

0 comments on commit 04265b3

Please sign in to comment.