Reusable ScatterPlot of the dataset
✓ Published0🌍 Public
This interactive scatter plot visualizes the relationship between the year and sales figures of various chocolate products, with a focus on Snickers bars, using D3.js. The visualization cycles through four different product categories—Kinder Joy, Twix, Cadbury, and Snickers—updating the y-axis every 3 seconds while maintaining the year on the x-axis. Rendered as an animated SVG, the chart features a clean, dark-themed design with clearly labeled axes and a dynamic title that updates to reflect the currently displayed product. The reusable chart function allows for flexible data binding and transitions, making it easy to adapt to similar datasets.
AI-generated descriptionReusable scatterplot has been constructed for the dataset using html,css,d3.js.
MIT Licensed