Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ques1 supriya

Public visualization

ques1 supriya

0 stars2🌍 Public
SSupriya Ravilla
Last edited Apr 19, 2024
Created on Apr 19, 2024

This example shows a pie chart of car makes, with each slice sized by the car’s horsepower, and a color-coded legend on the right. It loads car data from a CSV file hosted on GitHub. The visualization is built with D3 v6, using `d3.csv` for data loading, `d3.pie` for computing slice angles, `d3.arc` for generating the SVG paths, and `d3.scaleOrdinal` with `d3.schemeCategory10` for categorical colors, all rendered as SVG shapes.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed