Skip to main content
100%

sales - Virushika

✓ Published0🌍 Public
Vvrushikarao03@gmail.com
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

This example displays a pie chart of average ratings for different brands, sourced from a CSV file and rendered as an SVG. The code uses D3 v6 APIs including `d3.csv`, `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with `schemeCategory10` to color each slice. Brand names are labeled at each slice’s centroid, and the chart is centered within a fixed-width SVG. The visualization demonstrates loading external data and building a basic categorical pie chart with D3’s layout and shape generators.

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.
MIT Licensed

Similar vizzes