Skip to main content
100%

ICE6_Q1_Rendering Marks and Channels with D3

✓ Published3🌍 Public
PPbarring
Last edited Mar 6, 2022
Created on Mar 5, 2022
Forked from Hello VizHub

This example displays monthly gas prices for 2021 as a bar chart, with months on the y-axis and price on the x-axis. It uses React hooks (useState, useEffect) to load and parse CSV data from a GitHub gist via d3.csv, then renders SVG rectangles scaled with d3.scaleBand and d3.scaleLinear. Axes are drawn manually using d3.ticks, with grid lines and tick labels positioned via SVG transforms.

AI-generated description
MIT Licensed

Similar vizzes