BarChart
Creates a horizontal bar chart in the cell.
Syntax
BarChart(ratio, color1[, color2[, ratioHeight]])
color1 primary or first color in the bar
color2 second, optional color in the bar
ratioHeight vertical size as a percetange ratio of the cell height (default 80) Qubes 9.0
Remarks
The bar is depicted with a horizontal gradient. If color2 is specified, the gradient will be between color1 and color2; otherwise, the default value for color2 will be a lighter version of color1, according to the formula ColorLerp(color1, 'white', 0.75).
ratioHeight specifies the height of the barchart as a percentage of the cell height (default value is 80 for 80% of height). Available on Qubes v8 and v8 after x.2021.0411.0.
To specify multiple styles, use Block.
Examples
BarChart(0.5, 'blue') = creates a bar that occupies 50% of the cell, going from blue to light blueBarChart(0.75, 'red', 'white') = creates a bar that occupies 75% of the cell, going from red to white