Skip to main content
100%

Fork of Akhil -vizhub assignment bat-scatter

✓ Published0🌍 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
MIT Licensed

Similar vizzes