Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Barchart of the restaurant data

Public visualization

Viewing a saved revision (read-only)

f299478a923041b9be16c2c770d6fe84

Fork of Barchart of the restaurant data

1 star2🌍 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

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.