Viewing a saved revision (read-only)
e8398b32682d4198bdeef4336e1b23c2
Scatterplot of the restaurant data
This scatterplot displays the relationship between restaurant ratings (on the x-axis) and total review counts (on the y-axis), using one circle per restaurant. The visualization reveals whether higher-rated establishments tend to attract more reviews. The code loads data from a CSV file using `d3.csv`, scales the axes with `d3.scaleLinear`, and renders circles as SVG elements. It applies margins for axis placement, labels both axes with rotated text for the y-axis, and styles circles with a brown fill and light border. The chart is built with D3.js v6, rendering to SVG within an HTML page.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.