🌍 Public
Viewing a saved revision (read-only)
06d7a7905e4542e3a61de4a7ac495ad5
Presentation_Task4
This bar chart displays the average customer spending on each product category, with horizontal bars representing the price values from the dataset. The visualization uses D3 v5 to load CSV data and render an SVG, employing `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. Axis labels are generated with `axisLeft` and `axisBottom`, while each rectangle’s height is set using the y-scale’s bandwidth, and hover effects reduce opacity via CSS.
AI-generated description