🌍 Public
Viewing a saved revision (read-only)
21126c84db8e4d498d7a04fe98b4a22f
Fork of Bar chart assignment
This visualization displays average monthly sales data as a bar chart, with each bar representing a month’s sales value across multiple years of data. The chart uses D3.js (v7) scales and axes to map the categorical month values to the x-axis and the continuous sales values to the y-axis, rendering the bars as SVG rectangles. The code loads the data from a CSV file using `d3.csv`, then applies `d3.scaleBand` and `d3.scaleLinear` for positioning, with rotated x-axis labels and a fixed margin for the plot area.
AI-generated description