Skip to main content
100%

Fork of ICE-6: Rendering Marks and Channels with React & D3

✓ Published0🌍 Public
Kkarnisrikanth2212
Last edited Mar 11, 2023
Created on Mar 11, 2023

This interactive bar chart displays the basic cost of living for 15 cities across various US states. Built with React and D3 v5, the visualization renders SVG marks and channels, using a band scale for the categorical y-axis and a linear scale for the numerical x-axis. Data is loaded from a CSV file via d3.csv. The React component manages state and uses useEffect to fetch and slice the data, while d3.scaleBand and d3.scaleLinear map city names and costs to screen coordinates.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes