(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Stacked Bar Chart

Overview

Example Stacked Bar Chart

Specs

Tokens

Token Description
showLegend Show or hide the legend
barPadding Spacing between bars (number)
barWidth Width of individual bars (number)
ignoreEmptyPoints Omit empty/null data points
chartConfiguration Series and visual configuration
paddingClass Component padding via CSS classes
useMockData Use sample data instead of source
dataSourceId Data source identifier
getEntityCollectionHttpRequestParametersMap HTTP request parameters map
events Configurable component events
ON_INIT (Events) Event on component initialization
ON_DESTROY (Events) Event on component removal
displayName Display name in structure panel
visibilityPolicySetId Policy-based component visibility
displayConditions Conditions to show the chart
id Unique component identifier
dataTestId Testing hook identifier
enableAsHotspot Enable guided tour hotspot
guidedTourHotSpotTitle Title for guided tour hotspot
guidedTourHotSpotDescription Description for guided tour hotspot
Series Data fields represented as stacked bars
Category field Field with category labels (y-axis)
Series colors Color per series customization
Tooltip templates Tooltip content customization

Structure

(Configured in General Properties)

(Configured in Visibility)

Datasource

(Configured in Datasource)

Styling

(Configured in Visual Properties)

Custom bar width

Actions & Variants

(Configured in Events)

Tests

(Configured in Testing Hooks)

Authorization

(Configured in Authorization)

Links

Guidelines

Usage

Sizing & Layout

Color & Contrast

Tooltips

Data-Driven / Conditional Behavior

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Define a fixed series order so stacks are comparable across categories. Let series order vary between renders. chartConfiguration.Series, events.ON_INIT
Use ignoreEmptyPoints to omit nulls so totals aren’t misread. Render nulls as zero-length segments. ignoreEmptyPoints
Turn on the legend when multiple series exist. Force users to guess segment meaning from color alone. showLegend, chartConfiguration.Series colors
Use tooltip templates for supplemental details. Put critical identifiers only in tooltips. Tooltip templates, showLegend, Category field
Adjust bar width/padding to fit the category count. Keep default sizing that causes overlap or sparse layouts. barWidth, barPadding
Hide the chart until prerequisites are met. Show an empty/misleading chart before data is ready. displayConditions, dataSourceId, useMockData

Accessibility