Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Presentation_Task4

Public visualization

Viewing a saved revision (read-only)

06d7a7905e4542e3a61de4a7ac495ad5

Presentation_Task4

0 stars0🌍 Public
Rrikhitakoganti12
Last edited Jul 25, 2023
Created on Jul 25, 2023

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