Skip to main content
100%

d3v3 Multiple Pie Charts on Map - Data from CSV

✓ Published0🌍 Public
Aandrew-reid
Last edited Mar 17, 2017
Created on Jan 31, 2017

This example shows a map of India with seven small pie charts positioned at the locations of water-quality monitoring points. Each pie chart encodes the distribution of data values from a CSV file, with each slice colored by category. The map is rendered using a Mercator projection of a TopoJSON world dataset, with landmasses filled green and country borders drawn as white mesh lines. Pie charts are placed using the geographic coordinates (longitude/latitude) from the CSV, with a label above each chart. The pie layout and arc generator from d3.v3 are used to create the charts, with values parsed from a dash-separated string in the data column. Colors are assigned via a categorical scale, and the visualization combines geographic and statistical data in an SVG canvas. The example is based on a Stack Overflow question about plotting pie charts over map points with D3.js.

AI-generated description

Based on a question from Stack Overflow regarding multiple pie charts on a map

http://stackoverflow.com/questions/41949622/piechart-over-a-map-point-using-d3-js

Similar vizzes