
| 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 |
(Configured in General Properties)
"Regional Sales Breakdown" clearly identifies the purpose of this specific chart in the component structure. (Configured in Visibility)
displayConditions – Defines conditions under which the chart is displayed. This allows for context-aware visibility, showing the chart only when certain conditions are met (e.g., when a specific product category is selected).
Data Format Requirements
The Stacked Bar Chart component expects data in the following format:
[
{
"region": "North America",
"product1": 10000,
"product2": 5000,
"product3": 15000
},
{
"region": "Europe",
"product1": 12000,
"product2": 8000,
"product3": 10000
},
{
"region": "Asia",
"product1": 8000,
"product2": 9000,
"product3": 6000
}
]
chartConfiguration – Configures the series and visual aspects of the chart. This includes settings for each data series, colors, tooltips, and more. This property uses a detailed configuration object to control how data is mapped to visual elements.
(Configured in Visual Properties)
Series: Define which data fields should be represented as stacked bars
Category field: Specify which field contains the category labels (displayed on the y-axis)
Series colors: Customize the color of each series for better visual distinction
Tooltip templates: Customize what information appears when hovering over bars
(Configured in Datasource)
"api/sales-by-region" connects the chart to an endpoint that provides the appropriate data structure for visualization. (Configured in Visual Properties)
"5" adds moderate spacing between bars for better visual separation. "30" creates bars with a width of 30 pixels, allowing for control over the chart's density. "p-3" adds medium padding on all sides of the chart component. 
(Configured in Events)
(Configured in Testing Hooks)
(Configured in Authorization)
"salesTeamPolicy" restricts the chart to users with sales team privileges. chartConfiguration (Series, Category field).displayName so it’s identifiable in the structure panel.barWidth (thicker bars for short category lists, thinner for long lists).barPadding.paddingClass.chartConfiguration → Series colors to differentiate series.Series colors.showLegend with descriptive Tooltip templates.chartConfiguration → Tooltip templates.showLegend and the axis labels given by Category field.Tooltip templates (e.g., units/percentages).chartConfiguration → Category field and define all stack contributors in chartConfiguration → Series.chartConfiguration.Series.ignoreEmptyPoints.visibilityPolicySetId.displayConditions.guidedTourHotSpotTitle and guidedTourHotSpotDescription.displayName for authoring clarity without affecting end-user labels.| 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 |
showLegend) with clear series names in chartConfiguration.Series, and pair with concise Tooltip templates; choose high-contrast Series colors.ignoreEmptyPoints.guidedTourHotSpotTitle and guidedTourHotSpotDescription.Tooltip templates; never rely on tooltips as the sole source of critical information.chartConfiguration.Series so users don’t have to relearn mappings per view.