ICE6_Q1_Rendering Marks and Channels with D3
✓ Published3🌍 Public
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 descriptionMIT Licensed