Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 scatterplot

Public visualization

Viewing a saved revision (read-only)

e0dd63c93eb543d0a7caf9ff70e24189

Fork of D3 scatterplot

0 stars0🌍 Public
Ssrividyamadas@gmail.com
Last edited Mar 28, 2024
Created on Mar 27, 2024
Forked from D3 scatterplot

This example presents three pie charts showing tourist visitor numbers for 2019, 2020, and 2021, with each chart displaying the distribution of visitors across different tourist places. It uses Chart.js to render the charts onto canvas elements, fetching the dataset from a remote text file and parsing the comma-separated values to extract yearly visitor counts. The code creates a separate chart for each year, assigning random background colors to each slice and placing the legend on the right side. The visualization highlights the relative popularity of tourist destinations across the three years.

AI-generated description