Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

pie chart

Public visualization

Viewing a saved revision (read-only)

3f77a7c94b8e4b079e18123d55ef3e2d

pie chart

0 stars0🌍 Public
TTarun Kumar Bosupally
Last edited Mar 28, 2024
Created on Mar 28, 2024

This example shows a pie chart displaying crime counts by type, with the data fetched from a CSV file hosted in a GitHub Gist. The chart is drawn on a Canvas element using the Chart.js library, which handles the pie chart rendering. The JavaScript code parses the CSV data, extracting the crime type and count from specific columns, then passes these as labels and data values to the Chart.js constructor. The visualization uses a fixed set of semi-transparent colors for the pie slices with a border width of one pixel.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.