Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of PieChart for Activity 7.1

Public visualization

Viewing a saved revision (read-only)

42ab7909e26146c1b7d5230239714141

Fork of PieChart for Activity 7.1

0 stars2🌍 Public
Ssivaparchuri2000@gmail.com
Last edited Mar 26, 2025
Created on Mar 26, 2025

This example displays the distribution of iris flower species using a pie chart, with counts for setosa, versicolor, and virginica plotted from a CSV file fetched via a Gist URL. The chart, rendered on a Canvas element, uses Chart.js to draw the pie slices with distinct colors and a custom tooltip that labels each segment with its flower count. The code parses the CSV data line-by-line and counts species occurrences before passing the aggregated values to the chart library, which is configured with a fixed, non-responsive size.

AI-generated description