name: visx-modular-react-d3-primitives description: Constructs custom, type-safe React chart components by composing low-level Airbnb Visx D3 primitives. Use when building bespoke design-system chart libraries in React. license: MIT metadata: author: Community List Maintainers version: "1.0.0" source: "https://airbnb.io/visx/"
Visx Modular React D3 Primitives
Overview
Visx combines the mathematical power of D3 layout calculations with React declarative DOM rendering, producing lightweight, unopinionated, fully customizable charting components.
Operational Workflow
Import Visx scale primitives (@visx/scale) to compute linear, time, and band projections.:
- Import Visx scale primitives (@visx/scale) to compute linear, time, and band projections.
Compose SVG mark components (@visx/shape) including LinePath, Bar, and Area.:
- Compose SVG mark components (@visx/shape) including LinePath, Bar, and Area.
Integrate @visx/tooltip to handle responsive mouse tracking and popup overlays.:
- Integrate @visx/tooltip to handle responsive mouse tracking and popup overlays.
Package composite chart into reusable React TypeScript component adhering to design tokens.:
- Package composite chart into reusable React TypeScript component adhering to design tokens.
Recommended Tools & Environments
- Visx
- D3.js
- React
- TypeScript
Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.