Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Akhil -vizhub assignment bat-scatter

Public visualization

Viewing a saved revision (read-only)

71783a8dbefe40499370a5c859a50c9d

Fork of Akhil -vizhub assignment bat-scatter

0 stars0🌍 Public
Rrobertotienonyaranga@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024

This visualization displays the total price of vehicles aggregated by vehicle type as a horizontal bar chart, showing how sales values compare across categories. The bars are rendered as SVG rectangles with a green fill, with the x-axis representing the summed price and the y-axis listing vehicle types. The code uses D3’s `scaleBand` and `scaleLinear` to map data, `axisBottom` and `axisLeft` for axes, and React’s `useState` and `useEffect` hooks to load and process the CSV data from the provided URL. The chart is rendered via ReactDOM, with axes and labels positioned manually.

AI-generated description