Skip to main content
100%

Fork of Rectangles example

✓ Published0🌍 Public
Mmbooch22
Last edited Jan 9, 2023
Created on Jan 9, 2023
Forked from Rectangles example

This example visualizes a bar chart of items and their prices using D3 and React. The chart uses `d3.scaleBand` and `d3.scaleLinear` to map data to the x and y axes, with SVG `rect` elements drawn for each bar. The y-axis is flipped using a `scale` transform, and axes are rendered via `d3.axisBottom` and `d3.axisLeft`. The code also includes a separate, unreferenced component that would manage circles with `d3.nest` and a `transition` for sorting, though only the bar chart is rendered in the final app.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes