Skip to main content
100%

Lets Make a Face with D3 Format

✓ Published0🌍 Public
227-12-95
Last edited Mar 9, 2020
Created on Mar 9, 2020

This example visualizes survey data on platform usage, showing the percentage distribution between Windows and iOS as a single pie chart. The chart is rendered as an SVG using D3.js version 5, with the pie layout and arc generator computing the angles and paths for each slice. Colors are assigned via d3.scaleOrdinal with the schemeCategory10 palette, and the data is bound to SVG groups using the standard data join pattern. The visualization centers the pie within an SVG canvas of 500 by 300 pixels, with the radius set to half the smallest dimension.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes