Skip to main content
Version: Streamsheets 3.0

BAR

Draw a bar within a cell . A bar is only drawn in the cell, if it is the outer function within a formula.

Syntax

=BAR(Value, [Direction], [FillColor], [LineColor])

Arguments

NameTypeDescription
ValueNumberSize of bar covering the cell, that the function contains. The size is given as a factor of the height or width between 0 and 1, where 1 will cover the complete cell. Negative vales are allowed.
Direction (optional)BarDirectionDefine, if a horizontal or vertical bar shall be displayed

Options:
0: Display horizontal bar
1: Display vertical bar

Default value: 0
FillColor (optional)ColorFill color value.

Options:
"none": Invisible
"#FFFFFF": White
"#000000": Black
"#FF0000": Red
"#00FF00": Green
"#0000FF": Blue
"#FFFF00": Yellow
"#AAAAAA": Grey

Default value: "#00FF00"
LineColor (optional)ColorLine color value.

Options:
"none": Invisible
"#FFFFFF": White
"#000000": Black
"#FF0000": Red
"#00FF00": Green
"#0000FF": Blue
"#FFFF00": Yellow
"#AAAAAA": Grey

Default value: "none"

Return

TypeDescription
NumberThe value passed as the first argument.

Examples

FormulaResultComment
=BAR(0.5, 0, '#FF0000')
0.5Draw a horizontal with with a red fill color filling half the height of the cell.