Skip to main content
100%

pie chart

✓ Published0🌍 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.

MIT Licensed

Similar vizzes