Light or dark.
Props
Every prop has a default, so the component renders as it is. Change any of them in Studio or in code.
datalist
The slices, clockwise from 12 o'clock.
titlestring = "Traffic sources"
Heading.
subtitlestring = "Visitors by channel, last 30 days"
Muted line under the heading.
centerLabelstring = "Visitors"
Label under the total in the middle.
leaderinteger = -1
Slice that steps out at the end; -1 for the largest.
modelight | dark = "light"
Colour theme: light or dark.
paletteprimary | monochrome | ocean | sunset | grove | vivid = "primary"
Chart palette: primary (indigo, yellow, fuchsia, mist, black), monochrome, ocean, sunset, grove or vivid.
format.prefixstring
Before the number, e.g. "$".
format.suffixstring
After the number, e.g. "%" or "k".
format.decimalsinteger
Digits after the decimal point.
format.groupstring
Thousands separator, a comma by default. Empty for none.
innerRationumber = 0.66
Inner radius over outer radius; 0 draws a pie.
padDegreesnumber = 1.6
Gap between slices in degrees.
cornerRadiusnumber = 12
Corner radius of the slices in pixels.
sliceSecondsnumber = 0.75
How long each slice takes to sweep.
holdSecondsnumber = 1.6
How long the last frame holds.
camera.tightZoomnumber = 2
Zoom while orbiting the ring.
camera.wideZoomnumber = 1.04
Zoom of the whole chart.
camera.orbitnumber = 0.62
How far the camera follows the head around the ring (1 rides on it, lower keeps nearer the middle).
camera.motionBlurnumber = 1
Strength of the motion blur on the fast moves; 0 turns it off.
camera.rackFocusnumber = 4
Blur in pixels on the middle readout while the camera orbits.
Compositions
- DonutChart