🌍 Public
Viewing a saved revision (read-only)
053d1c5c06d644b39896f893fe6a4988
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