Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Mmanthenasirisha06@gmail.com
Last edited Mar 28, 2024
Created on Mar 27, 2024

The scatter plot visualizes nutritional values—carbohydrates, protein, and total fat—for McDonald's top ten selling menu items, using a red, blue, and green circle for each nutrient per item. It loads CSV data via `d3.csv` and renders SVG circles positioned with `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, with rotated labels, while `d3.select` and `append` build the chart.

AI-generated description

Scatter plot for nutritional values of top 10 most selling items of Mc Donalds

MIT Licensed

Similar vizzes