Skip to main content
100%

Untitled

✓ Published1🌍 Public
Ssri7harsha
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example presents a pie chart visualizing company values, with each slice labeled and colored by company. The chart is generated using D3.js v3, employing the `d3.layout.pie` and `d3.svg.arc` APIs to compute and draw the arcs. A custom legend, defined in `d3.legend.js`, is placed to the right and uses metadata attributes like `data-legend` and `data-legend-color` to automatically generate labeled items with colored circles. The data is loaded from a remote CSV file, and the chart renders as SVG with a fixed size and ordinal color scale.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes