Fork of React + D3 Viz Starter
✓ Published0🌍 Public
This fork of a React + D3 Viz Starter displays a global map of volcanoes colored by primary type, with markers for stratovolcanoes, calderas, shields, and shield(s). The visualization relies on a `VizContainer` component that abstracts SVG/group elements and follows the margin convention, optionally showing margins via a `showMargins` prop. The code references Leaflet’s `L.map` and `L.marker` APIs to plot volcano coordinates, binding popups with volcano names, while the data includes fields for volcano name, type, and country.
AI-generated descriptionBoilerplate code for a React + D3 visualization with:
- CDN links for React, ReactDOM, and D3
- Basic React boilerplate
- Variables for dimensions and margins
- A
VizContainercomponent that:- Abstracts SVG/group container elements
- Follows the margin convention
- Show the margins, which can be easily removed by deleting the
showMargins={true} prop
MIT Licensed