Shopping App Prototype
✓ Published0🌍 Public
CCurran Kelleher
Last edited Feb 16, 2018
Created on Nov 23, 2017
This interactive shopping app prototype animates a dynamic dataset of products and prices, displaying each item as a horizontal steelblue bar with a text label showing its name and price. Using D3 v4 with SVG rendering, the visualization updates over time via `setTimeout` calls, adding and removing items like Milk, Eggs, and Cupcakes while adjusting the scale and bandwidth. The code leverages `d3.scaleLinear` for price encoding on the x-axis and `d3.scaleBand` for categorical positioning on the y-axis, with enter, update, and exit selections to handle data changes smoothly. The fixed vertical spacing maintains consistent row height as the dataset grows and shrinks.
AI-generated descriptionmit Licensed