Skip to main content
100%

d3 and color

✓ Published0🌍 Public
AAliciaNiu
Last edited Jul 16, 2021
Created on Jul 16, 2021

This example shows a color wheel generated from a CSV dataset, where each data row is rendered as a pie slice filled with its RGB color value. It demonstrates loading D3 via UNPKG and using ES6 imports from the local module, with a React component fetching data via `d3.csv` from a GitHub gist. The visualization maps each row to a pie slice using `d3.pie` and `d3.arc`, centering the resulting ring in an SVG canvas with `d3.arc`’s inner and outer radii.

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