viewBy
Home > @gooddata/sdk-ui-charts > IBarChartBucketProps > viewBy
IBarChartBucketProps.viewBy property
Specify one or two attributes to slice the measures along the Y axis.
Signature:
viewBy?: AttributeOrPlaceholder | AttributesOrPlaceholders;
Remarks
If you specify two attributes, the values of these attributes will appear on the Y axis as grouped. For each value of the first attribute there will be all applicable values of the second attribute. For each value of the second attribute there will be a bar indicating the respective slice's value.