Skip to main content
100%

Bar Chart assignment

✓ Published0🌍 Public
KKOLLIPATI NIKHIL
Last edited Oct 19, 2025
Created on Oct 19, 2025
Forked from D3 Starter

This bar chart shows average monthly sales trends across a year, with each bar representing a month’s sales value from the CSV dataset. The visualization aggregates and displays repeated monthly entries as individual bars, making seasonal patterns and overall growth apparent. Built with D3.js v7, the code loads data via `d3.csv`, maps values using `d3.scaleBand` and `d3.scaleLinear`, and renders the chart as an SVG. Axes are added with `d3.axisBottom` and `d3.axisLeft`, and the chart is titled “Average Monthly Sales Bar Chart” with a rotated x-axis label for readability.

AI-generated description
MIT Licensed

Similar vizzes