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 series, left to right.
titlestring = "Weekly active sessions"
Heading.
subtitlestring = "Sessions per month, this year"
Muted line under the heading.
seriesNamestring = "Sessions"
Name shown in the tooltip row.
highlightinteger = 9
Index of the point the tooltip ends on.
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.
colorinteger = 0
Which palette colour (--chart-1 to --chart-5, as 0 to 4) draws the series.
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.
drawSecondsnumber = 3.6
How long the line takes to draw.
holdSecondsnumber = 1.6
How long the last frame holds on the tooltip.
markersboolean = true
A dot at every data point as the line passes it.
camera.tightZoomnumber = 2.5
Zoom while riding the line tip.
camera.wideZoomnumber = 0.99
Zoom of the whole chart.
camera.leadnumber = 330
Screen pixels the camera leads the tip by.
camera.motionBlurnumber = 1
Strength of the motion blur on the fast moves; 0 turns it off.
camera.rackFocusnumber = 4
Blur in pixels on the grid and labels while the shot is tight; they snap sharp on the pull out.
camera.driftnumber = 3
Handheld drift in pixels on the holds.
Compositions
- AreaChart