Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-7-Q-1(Gopala Krishna Battula)

Public visualization

Viewing a saved revision (read-only)

053d1c5c06d644b39896f893fe6a4988

Activity-7-Q-1(Gopala Krishna Battula)

0 stars0🌍 Public
Kkrishna444battula@gmail.com
Last edited Nov 3, 2024
Created on Oct 30, 2024

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