🌍 Public
Viewing a saved revision (read-only)
8fd3ce71b9b444a7bdf83dfd0de74fdf
Fork of Rahul
This scatterplot visualizes the relationship between carbohydrate and ash content in food items, with points colored by category (blue for cheese, red for cherries, orange for others). The code uses D3 v6 to load CSV data, scales the x and y axes linearly using `scaleLinear`, and renders circles with SVG. Axis labels are added via `axisBottom` and `axisLeft`, with explicit font styling. The visualization employs a simple color-mapping function to distinguish categories, while the chart fills the browser window with margins for axis placement.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.