showBar

Selection List Properties and Selection Tree Properties more information on these components.

Specifies that the aggregated measure should be displayed as a bar. This is equivalent to selecting ‘Bar’ under the Data tab of the component ‘Properties’ dialog box.

SelectionListShowBar

Type

Boolean

true: show bar
false: hide bar

Example

SelectionList1.query = 'SalesByDate';
SelectionList1.fields = ['State'];
SelectionList1.measure = 'Total';
SelectionList1.formula = StyleConstant.MAX_FORMULA;
SelectionList1.showBar = true;

Either syntax below can be used in component script:

showBar                   // unqualified
SelectionList1.showBar    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.