AIDEA Weekly
한국어

↑↓ Enter Esc

CHT-008Donut share

CHT-008

Donut share

  • Slices fill clockwise from twelve o'clock while the total counts up in the middle.

Draw the share of each item as a donut chart. Slices fill one after another clockwise from twelve o'clock, and the total in the middle counts up from 0. Put a legend with colour, name and percentage on the right, and when it finishes the largest slice pops out slightly. The total is [total and unit].

[paste your table here]

The first row is the header. Put CSS and JavaScript in a single HTML file and draw with canvas or SVG, without external libraries. Dark background, crisp numbers and text, and no overlapping text even at phone width. If prefers-reduced-motion is on, show the finished chart without motion.

Blanks

How to use

  1. Borrow (copy) the prompt.
  2. Replace the [brackets] with your own content. Type in the fields below and it updates at once.
  3. Paste it into a new Claude chat and open the HTML file it returns in a browser.

Process

  1. A scene from the guide "Animated data charts with Claude".
  2. The preview is drawn on this site to show the scene this prompt makes.

Same class CHT