Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cuisine Pie Chart - Pseudo Viz

Public visualization

Viewing a saved revision (read-only)

b01b06a2d2ac432e96db7d623bfdefd4

Cuisine Pie Chart - Pseudo Viz

0 stars0🌍 Public
Jjjlaber
Last edited Feb 13, 2023
Created on Feb 4, 2023
Forked from Marks and Channels

This example transforms a five-cuisine order dataset into a pseudo pie chart. It uses `d3.pie` and `d3.arc` to compute and draw the chart’s arcs, with `d3.scaleOrdinal` assigning a categorical color scale to each cuisine. The visualization is rendered as an SVG group centered within a 900x500 canvas. While the code imports various other chart primitives (e.g., circle, rect, symbol) from separate modules, only the pie chart function is executed, producing a static, labeled donut-like chart without interactivity.

AI-generated description