Skip to main content
100%

Fork of Barchart of the restaurant data

✓ Published2🌍 Public
Kkoteswararao614@gmail.com
Last edited Mar 21, 2024
Created on Mar 19, 2024
Forked from HTML Starter

This horizontal bar chart visualizes restaurant ratings for the top 30 venues from a CSV dataset, using React with D3 v5 to render SVG marks. The chart displays restaurant names on the y-axis and their numerical ratings on the x-axis, with bar lengths encoded by the `scaleLinear` rating values. Gridlines and axis labels are generated using D3's `scaleBand`, `axisBottom`, and `scaleLinear` utilities. The code uses `csv()` to load external data and renders styled rectangles with a color palette defined in CSS, while the React component manages the asynchronous data loading and state updates.

AI-generated description

This bar chart has been created using html, css, d3.js. CSS is used for styling the webpage.

MIT Licensed

Similar vizzes