GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

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.

  • IAreaChartBucketProps.viewBy property
  • Remarks
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use