This example demonstrates how to add emphasis to points on a plot/map to highlight clusters. The size of each circle
is determined by a how much it shares a characteristic with its surrounding neighbours of a grid 3x3.
It uses colour encoding taken from from various examples of cloropethic maps based on d3's quantile scale. I've added a similar method for opacity.
The input is an array
of objects
. Each object must have at least 3 key:value
pairs - 2 representing a x
& y
for your plot, the other should be a value of some kind. In this example the x/y is the easterly and northerly of 10km grid, the value is a rate between 0 and 1. An example:
[ {e: 37, n: 45, rate: 0.68},
{e: 51, n: 49, rate: 0.48},
{e: 39, n: 51, rate: 0.71}