viewBy
Home > @gooddata/sdk-ui-charts > IAreaChartBucketProps > viewBy
IAreaChartBucketProps.viewBy property
Specify attributes to slice and stack the area chart.
Signature:
viewBy?: AttributeOrPlaceholder | AttributesOrPlaceholders;
Remarks
If you specify single attribute, then elements of this attribute will be used to slice the measures along the X axis.
If you specify two attributes, then the first attribute will be used to slice the measures along the X axis, and the second attribute will be used for stacking.
If you specify three or more attributes, only the first two attributes will be used.
Note: using two measures in viewBy is a convenience. It is equivalent to specifying single viewBy and single stackBy attribute. In either case, as soon as the area chart is stacked, only the first measure will be calculated and charted.