Skip to main content
100%

Pie chart-ICE7

✓ Published0🌍 Public
Ssridhardubala106@gmail.com
Last edited Mar 28, 2024
Created on Mar 27, 2024
Forked from HTML Starter

This pie chart displays the number of visitors to various tourist places in 2019, with each slice labeled by the destination’s name and state, and a legend positioned to the right. It uses Chart.js to render the chart on a Canvas element, pulling comma-separated data from a remote gist via `fetch()`. The code assigns random semi-transparent background colors to each slice and customizes tooltips to show both the raw visitor count and its percentage of the total, while the chart itself is configured with `responsive: false` and a fixed canvas size.

AI-generated description
MIT Licensed

Similar vizzes