Activity-7-Q-1(Gopala Krishna Battula)
✓ Published0🌍 Public
This pie chart shows the distribution of calories across various food items, with each slice representing a food’s caloric contribution. The visualization uses Chart.js on a canvas element to render the chart, while d3.csv fetches the dataset from a remote gist file. The code maps parsed food names and calorie values to labels and data points, applying a repeating color palette and enabling hover offsets, tooltips, and a legend for interactivity.
AI-generated descriptionMIT Licensed