Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
BBhanu Siva Kumar Kommana
Last edited Mar 5, 2023
Created on Mar 5, 2023
Forked from Making a Bar Chart

This example shows a simple bar chart comparing quantities of five fruits, with each bar filled in orange against a blank background. The visualization renders in SVG, using D3 version 5’s core selection and data-binding methods to load values from an external CSV file. The code creates a fixed 960 by 500 pixel canvas and uses D3’s `scaleBand` and `scaleLinear` to position and size the rectangles based on the parsed data, while the stylesheet sets the fill color.

AI-generated description
MIT Licensed

Similar vizzes