menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

flowmap.blue

Geographic flow map visualization with flowmap.blue

Channels
Team

Color of locations based on migration saldo

September 4, 2020 at 11:22am

Color of locations based on migration saldo

September 4, 2020 at 11:22am
Is it possible to change the color of the location circles? I am using flowmap.gl and would like to emphazise the migration balance(number of incomings minus number of outgoings) and color the locations based on wheter the migration balance is positiv or negative. How would you do that? Thanks a lot for your help! Sarah

September 4, 2020 at 12:45pm
It should be possible with flowmap.gl if you enable the diff mode and pass a custom getter for the location totals to the layer. In this mode two different colors are used to represent positive and negative values.
Thanks for your fast reply, Ilya! Is there maybe an example for the diff mode.
Edited
The link in the flowmap.gl - read me is broken. Is it possible to to customize the two diffrent colors? Thanks for your help! Sarah
Edited
Sorry I am away from computer, so I can not easily find the links. But yes, it is possible to customize all of the colors using the colors prop