Skip to main content
100%

chocolate sales in india

✓ Published0🌍 Public
KKiran Jyothi Bodduluri-11604571
Last edited Mar 12, 2023
Created on Mar 12, 2023

This visualization shows chocolate sales in India over time, with a smoothed line and filled area chart tracking yearly sales figures. The x-axis displays the year, while the y-axis shows sales values with abbreviated tick labels. Built with D3 v5, the code uses `scaleTime`, `scaleLinear`, and `axisBottom`/`axisLeft` to map data, and `line`/`area` generators with `curveBasis` to create the smooth curve and shaded region. Data is loaded via `csv` from a GitHub gist, with the year parsed using `d3.timeParse` and rendered as SVG elements.

AI-generated description
MIT Licensed

Similar vizzes