Skip to main content
100%

Kumar Danam Reusable Scatter Plot ICE-7

✓ Published0🌍 Public
KKumar Danam
Last edited Oct 27, 2025
Created on Oct 27, 2025

This reusable scatter plot displays calorie count against price for a menu of drinks and snacks, with each point colored by a category-specific hex value from the dataset. Built with D3.js v7, the chart uses the `d3.scaleLinear` API for axis scaling and `d3.axisBottom`/`d3.axisLeft` for tick marks, while tooltips appear on hover via mouse events. The SVG rendering follows a configurable function that accepts data, attribute names, and dimensions, making the visualization portable across different datasets.

AI-generated description
MIT Licensed

Similar vizzes