Skip to content

Instantly share code, notes, and snippets.

@jsrath
Created November 15, 2018 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsrath/7781a2b4f3e96711d63825f6d64b7fbd to your computer and use it in GitHub Desktop.
Save jsrath/7781a2b4f3e96711d63825f6d64b7fbd to your computer and use it in GitHub Desktop.
const tooltip = d3
.select('body')
.append('div')
.attr('class', 'tooltip');
const color = d3
.scaleLinear()
.domain([d3.min(vatValues), d3.mean(vatValues), d3.max(vatValues)])
.range(['green', 'yellow', 'red']);
const projection = d3
.geoConicConformal()
.rotate([-10, 0])
.center([0, 51])
.parallels([29.5, 45.5])
.scale(1255)
.translate([width / 2, height / 2]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment