🌍 Public
Viewing a saved revision (read-only)
ff9fecd55ed245f0a6441b5412a9af63
Bar Chart assignment
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