Fork of Akhil -vizhub assignment bat-scatter
✓ Published0🌍 Public
This bar chart visualizes the total vehicle price aggregated by vehicle type, showing how different car categories contribute to overall sales value. The chart uses horizontal bars with a green fill that darkens on hover, displaying the summed prices along a linear x-axis scale while the vehicle types are listed on a band y-axis. The visualization is built with React and D3.js v5, using the `csv` loader to fetch the cars dataset from a GitHub gist and the `scaleBand` and `scaleLinear` functions to construct the axes. Data is aggregated on the client side by reducing the raw records by the "Type" field, with axis labels for "Average Price" and "Vehicle Type" clarifying the chart's purpose.
AI-generated descriptionMIT Licensed