We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to migrate this:
//style new ShapeColorSizeStyle({ colorCol: 'd2011_2021', color: (v, r, s) => { const stre = sPow let t = 0.5 if (s.min < 0 && v < 0) { t -= stre(v / s.min, streC) / 2 } else { t += stre(v / s.max, streC) / 2 } //t = 1 - t return interpolateRdBu(t) }, }), //legend new ColorLegend({ title: 'Change in number of inhabitants', ticks: 4, width: 290, colorRamp: interpolateRdBu, invert: false, fun: (t, r, s) => { const streI = sPowInverse if (t < 0.5) return s.min * streI(1 - 2 * t, streC) if (t > 0.5) return s.max * streI(2 * t - 1, streC) return 0 }, })
To V3 and I cant do it for the life of me!
How should it look in V3?
The text was updated successfully, but these errors were encountered:
I added a new example in the doc, see: https://eurostat.github.io/gridviz/docs/reference#color-legend https://eurostat.github.io/gridviz/examples/legends/colorLegendDiverging.html https://github.com/eurostat/gridviz/blob/master/examples/legends/colorLegendDiverging.html
Sorry, something went wrong.
No branches or pull requests
Trying to migrate this:
To V3 and I cant do it for the life of me!
How should it look in V3?
The text was updated successfully, but these errors were encountered: