Viewing a saved revision (read-only)
f299478a923041b9be16c2c770d6fe84
Fork of Barchart of the restaurant data
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.