A small gap between bars makes it a histogram.
Props
Every prop has a default, so the component renders as it is. Change any of them in Studio or in code.
labelstring = "Export"
The button label (the export that makes the number).
titlestring = "Renders this week"
Small heading over the number in the finished chart.
valuestring = "24,815"
The stat, as written.
deltaLeadstring = "5.8k"
Bold lead of the line after the stat, e.g. "5.8k".
deltastring = " more than the week before"
The rest of that line.
seriesvalue = ['Last week', 'This week']
The two legend entries: last period, this period.
dayslist
X axis labels, spread evenly under the chart.
tickslist
Y axis labels, top to bottom.
cellslist
The histogram, one string per row from the top: "#" a cell of this period, "." a cell of the last period, " " empty. Rows must be 52 wide.
settlenumber = 0.4
Seconds the button spends settling from the press before the collapse starts (measured: the collapse starts at 0.4 s).
collapseAtnumber = 0.4
Seconds when the label starts to dissolve and the pill to collapse.
collapseFornumber = 0.233
Seconds the collapse takes, ease-in: it arrives at full speed.
chartFornumber = 0.533
Seconds the chart takes to fade up around the square, starting as the square lands.
cutAtnumber = 1.2
Seconds when the shot cuts out to the whole chart.
zoomnumber = 2.4
Magnification of the close-up.
holdSecondsnumber = 0.533
Seconds the whole chart holds after the cut.
accentcolour = "#f79364"
The colour of this period and of the button after it collapses.
accentTopcolour = "#fb996b"
A lighter accent, the top of each cell.
mutedcolour = "#e0e0de"
Last period cells.
colorcolour = "#000000"
The button and the stat.
backgroundcolour = "#f6f6f4"
Background.
Compositions
- BarChart