🌍 Public
Viewing a saved revision (read-only)
ecb9f1c9094941838532968dd194e8c0
Activity-7-Q-1(Gopala Krishna Battula)
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 description