uber / react-vis

Data Visualization Components
https://uber.github.io/react-vis
MIT License
8.73k stars 835 forks source link

Choropleth map support #1064

Open cvalmonte opened 5 years ago

cvalmonte commented 5 years ago

An interactive choropleth heat map would be awesome (i.e. hovering over US states and viewing their population via the Crosshair component)

Here is an example: https://www.amcharts.com/demos/us-heat-map/ D3 example: https://beta.observablehq.com/@mbostock/d3-choropleth

mcnuttandrew commented 5 years ago

I think this should totally be possible! If you just grab the relevant geojson and pull out the coordinates than I think you can drop them into the XYPlot via PolygonSeries. Doing this will ignore projection, but that can be manipulated through d3-choropleth just like you suggest.