Skip to main content
100%

Fork of React + D3 Viz Starter

✓ Published0🌍 Public
Ttrentjhn
Last edited Oct 29, 2022
Created on Oct 29, 2022

This dashboard presents a multi-view analysis of user data, where a master-detail layout links filtered demographics to individual profiles. It uses React components with Ant Design’s `Layout` for the sidebar and content areas, while D3 v6 handles visual encodings. The app filters users by age and gender through interactive controls, updating a shared data array across all views. Selection of a specific user in one chart propagates to the other views, demonstrating coordinated state management. The rendering is fully SVG-based, with custom margins handled by a reusable `VizContainer` component per the margin convention.

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