Skip to main content
100%

Viz - pie - startAngle

✓ Published0🌍 Public
NNPashaP
Last edited Jan 15, 2018
Created on Jan 15, 2018

A pie chart visualizes six numeric values with a custom starting angle of 90 degrees, shifting the first slice to the top of the circle. The chart renders as an SVG using the d3.v4 library’s selection and call mechanism, pulling the viz.pie API from Viz.js to compute the arc layout. The code defines the pie with a data array and specifies startAngle(Math.PI/2), then attaches it to a <g> element translated within a 960×500 SVG canvas.

AI-generated description
gpl-3.0 Licensed

Similar vizzes