Skip to main content
100%

Barchart

✓ Published0🌍 Public
GGorantla Vishnusai
Last edited Mar 26, 2025
Created on Mar 26, 2025
Forked from Fork of Question 2

This bar chart visualizes BMW sales figures by model, using a static, vertical bar layout. Built with D3.js v7, the chart loads data from a CSV file via `d3.csv`, converts the sales values from strings to numbers, and renders the bars as SVG rectangles. The visualization includes a band scale for the categorical x-axis (`d3.scaleBand`) and a linear scale (`d3.scaleLinear`) for the y-axis, with axes generated using `d3.axisBottom` and `d3.axisLeft`. Hovering over a bar changes its fill from steel blue to orange.

AI-generated description
MIT Licensed

Similar vizzes