Skip to main content
100%

Fork of React + D3 Viz Starter

✓ Published0🌍 Public
RRamch16
Last edited May 1, 2023
Created on May 1, 2023

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 description

Boilerplate code for a React + D3 visualization with:

  • CDN links for React, ReactDOM, and D3
  • Basic React boilerplate
  • Variables for dimensions and margins
  • A VizContainer component 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

Similar vizzes