chocolate sales in india
✓ Published0🌍 Public
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 descriptionMIT Licensed