Pie chart-ICE7
✓ Published0🌍 Public
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 descriptionMIT Licensed