Exersice Episode 8 - Scatter plot
✓ Published1🌍 Public
This scatter plot visualizes the relationship between calories (kcal) and fat content (vet) for a dataset of Dutch food products, with each point representing a product from a CSV file. The plot uses D3 v6's `scaleLinear` for both axes and employs the `csv` function to parse data from the external file. Points are rendered as SVG circles, with axes generated using `axisLeft` and `axisBottom`. The code reads product data from 'koolhydrate.csv', which includes columns for carbohydrates, fat, calories, product name, and unit.
AI-generated descriptionExercise
- Extracted data from https://www.koolhydraten.nl/ into csv file
- Using csv file for scatter plot
MIT Licensed