Combined Bar Chart
A Combined Bar Chart is useful when you need to display multiple measures with different scales.
Widget Settings
In addition to the common widget settings, this widget has unique configuration options.
Data Settings
You can add dimensions and measures to the widget. For dimensions, you can hide empty values, add click actions, and configure the Display parameter (Always / By variable / By formula).
Measures offer additional settings.
Type
Controls how the chart is displayed: Auto (default), as bars, or as a line with points. When using a line, you can adjust its thickness.
Additionally, you can enable Data labels for a measure and specify their size.
The available color configuration modes for dimensions and measures depend on the widget’s setup and the selected chart type: Auto, Bar, or Line.
| 1 dimension | |
|---|---|
| 1 measure | Chart type Line For the dimension: Color settings are unavailable For the measure, the following modes are available: 1. Solid Chart type Bar For the dimension, the following modes are available: 1. Disabled 2. By values (Solid-mode rules apply to values) 3. By rule (rules based on the added dimension apply to values) For the measure, the following modes are available: 1. Solid 2. Gradient 3. Custom |
| Multiple measures | For the dimension (any chart type): Color settings are unavailable For a measure with type Auto: Color settings are unavailable For a measure with type Bar, the following modes are available: 1. Auto 2. Solid 3. By rule (Solid-mode rules apply to values) For a measure with type Line, the following modes are available: 1. Auto 2. Solid 3. By rule (Solid-mode rules apply to values) |
Display Settings
Text Size
Controls the font size within the widget, excluding measure Data labels.
Dimension Limit
Controls the number of bars or points displayed on the chart.
Hide Empty Values
Enable this option to exclude empty values from the chart.
Hint
When enabled, hovering over a bar or point in Browse mode displays a hint with detailed information about the data shown.
Type
If the chart contains two or more bar-type measures, you can choose how bars are displayed: stacked or grouped.
Orientation
Controls the direction in which bars are displayed:
- Auto (default)
- Vertical
- Left-aligned vertical
- Right-aligned vertical
If the dimension uses a time-based format, the chart orientation is vertical; otherwise, it is horizontal.
Bar Width
Default: Auto (20 pixels for horizontal orientation, 36 pixels for vertical). Acceptable values range from 12 to 100 pixels. The input value sets the maximum bar width, provided there is enough space on the chart (gaps between bars are at least as wide as the bars themselves). If space is insufficient, the bar width is automatically reduced to the maximum possible for each specific case.
- This parameter is available only if the widget contains at least one bar-type measure.
- If bars are displayed in grouped mode, the configured width applies to all bars.
Line Smoothing
Enable this option to make lines on the chart smoother (available only for the line-with-points display mode).
Legend
Details on working with the legend are described on the Widgets page.
X-Axis
For the X-axis, you can enable a title and configure label rotation and height.
Y-Axis
For the Y-axis, you can enable a title and set label width.
Y2-Axis
For the Y2-axis, you can enable a title, set label width, and define a value range.
- Display of all axes can be toggled on or off.
- If a measure’s value exceeds the axis range, the chart automatically scales to accommodate it. Values outside the defined range are displayed without points beyond the visible area of the chart.
Filtering Settings
The widget supports standard filtering settings.
- A filter configured within the widget cannot be removed in Browse mode.
- If a click-based filter is applied to the widget, the selected points on the line are highlighted.
Widget Configuration in YAML
The widget can be edited not only visually but also in the YAML editor. The table below lists the keys and values you can use for configuration. For details on working with the value key, refer to Dimension and Measure Values in YAML. Supported data formats are described on the corresponding page. General widget parameters are covered in Widget Configuration in YAML.
Data Settings in YAML
| Key | Type | Definition |
|---|---|---|
| title | string | Title |
| showMarkdown | boolean | Description |
| markdownText | string | Description text |
| markdownMeasures | — | Measures in description |
| dimensions | — | Dimensions |
| measures | — | Measures |
| sorting | — | Sorting |
Dimensions in YAML (key: dimensions)
| Key | Type | Definition |
|---|---|---|
| name | string | Dimension name |
| value | — | Dimension formula |
| dbDataType | enum | Dimension data type |
| format | enum | Format |
| formatting | enum | Formatting |
| formattingTemplate | string | Custom formatting Only available for CUSTOM (Custom) formatting |
| hideEmptyValues | boolean | Hide empty values |
| hierarchyDimensions | — | Hierarchy dimensions If this parameter is added, the indicator is treated as hierarchical |
| onClick | — | Click actions Not displayed if the indicator is hierarchical |
| color | — | Color: - DISABLED — Disabled- VALUES — By values- RULE — By ruleNot applied if: 1. More than one measure is defined 2. Only one measure exists with type LINE3. The dimension is hierarchical |
| displayCondition | — | Display (display condition) |
| arrayNesting | boolean | Array nesting |
Hierarchical Dimension (key: hierarchyDimensions)
| Key | Type | Definition |
|---|---|---|
| name | string | Dimension name |
| value | — | Dimension formula |
| dbDataType | enum | Dimension data type |
| format | enum | Format |
| formatting | enum | Formatting |
| formattingTemplate | string | Custom formatting Only available for CUSTOM (Custom) formatting |
| hideEmptyValues | boolean | Hide empty values |
| onClick | — | Click actions |
| color | — | Color: - DISABLED — Disabled- VALUES — By values- RULE — By ruleNot applied if: 1. More than one measure is defined 2. Only one measure exists with type LINE |
| displayCondition | — | Display (display condition) |
| arrayNesting | boolean | Array nesting |
Measures in YAML (key: measures)
| Key | Type | Definition |
|---|---|---|
| name | string | Measure name |
| value | — | Measure formula |
| dbDataType | enum | Measure data type |
| format | enum | Format |
| formatting | enum | Formatting |
| formattingTemplate | string | Custom formatting Only available for CUSTOM (Custom) formatting |
| display | — | Measure display type |
| showLabels | — | Data labels |
| color | — | Color 1. For measures with type AUTO:- AUTO — Auto2. For measures with type BAR:- AUTO — Auto- BASE — Solid- FORMULA — By formula- RULE — By rule3. For measures with type LINE:- AUTO — Auto- BASE — Solid- RULE — By rule |
| displayCondition | — | Display (display condition) |
Measure Display Type in YAML (key: display)
| Key | Type | Definition |
|---|---|---|
| mode | enum | Type: - AUTO — Auto- BAR — Bar- LINE — Line |
| lineThickness | enum | Line thickness: - THIN — Thin- THICK — ThickOnly available for type LINE |
Value Labels in YAML (key: showLabels)
| Key | Type | Definition |
|---|---|---|
| enabled | boolean | Labels on/off |
| size | number | Label size |
Display Settings in YAML
| Key | Type | Definition |
|---|---|---|
| paddings | string | Side paddings |
| titleSize | number | Title size |
| titleColor | — | Title color: - AUTO — Auto- BASE — Solid |
| titleWeight | enum | Font weight: - NORMAL — Normal- BOLD — Bold |
| markdownTextSize | number | Description text Specifies the Markdown description font size. Available only if the Description toggle is enabled |
| textSize | number | Text size |
| dimensionLimit | number | Dimension limit |
| hideEmptyValues | boolean | Hide empty values |
| showHint | boolean | Hint |
| chartType | enum | Chart type: - STACK — Stacked- GROUP — GroupedApplies only if more than one measure uses type BAR |
| orientation | enum | Orientation: - AUTO — Auto- HORIZONTAL — Horizontal- VERTICAL-LEFT — Vertical, left-aligned- VERTICAL-RIGHT — Vertical, right-aligned |
| lineSmoothing | boolean | Line smoothing |
| legend | — | Legend |
| showTotalLabels | — | Total Data labels Only available for type STACK |
| xAxis | — | X-axis settings |
| x2Axis | — | X2-axis settings |
| yAxis | — | Y-axis settings |
| y2Axis | — | Y2-axis settings |
| barWidth | number | Bar width |
Total Value Labels (key: showTotalLabels)
| Key | Type | Definition |
|---|---|---|
| enabled | boolean | Total labels on/off |
| size | number | Label size |
X-Axis Settings (key: xAxis)
| Key | Type | Definition |
|---|---|---|
| enabled | boolean | X-axis on/off |
| rotation | number | Label rotation |
| height | number | Label height |
| showTitle | boolean | Title |
X2-Axis Settings (key: x2Axis)
| Key | Type | Definition |
|---|---|---|
| enabled | boolean | X2-axis on/off |
| rotation | number | Label rotation |
| height | number | Label height |
| showTitle | boolean | Title |
| rangeSwitch | boolean | Enable/disable range |
| range | — | Range values |
Range Values in YAML (key: range)
| Key | Type | Definition |
|---|---|---|
| min | number | Minimum value |
| max | number | Maximum value |
Y-Axis Settings (key: yAxis)
| Key | Type | Definition |
|---|---|---|
| enabled | boolean | Y-axis on/off |
| width | number | Label width |
| showTitle | boolean | Title |
Y2-Axis Settings (key: y2Axis)
| Key | Type | Definition |
|---|---|---|
| enabled | boolean | Y2-axis on/off |
| width | number | Label width |
| showTitle | boolean | Title |
| rangeSwitch | boolean | Enable/disable range |
| range | — | Range values |
Filtering Settings in YAML
| Key | Type | Definition |
|---|---|---|
| filterMode | enum | Filter mode: - DEFAULT — Default- SINGLE — Single selection- DISABLED — Disabled |
| ignoreFilters | boolean | Ignore filters |
| filters | — | Filters |
| aggregateFilters | — | Aggregate filters |
| stateName | string | State |
Example of a Configured Widget in the YAML Editor
- key: combined-bar-chart
apiVersion: "16"
type: COMBINED_CHART
settings:
title: ""
titleSize: 14
titleColor:
mode: AUTO
titleWeight: NORMAL
showMarkdown: false
markdownMeasures: []
markdownText: ""
textSize: 12
displayCondition:
mode: DISABLED
showTotalLabels:
enabled: false
size: 12
xAxis:
enabled: true
showTitle: false
x2Axis:
enabled: true
showTitle: false
rangeSwitch: false
range: {}
yAxis:
enabled: true
showTitle: false
y2Axis:
enabled: true
showTitle: false
rangeSwitch: false
range: {}
dimensionLimit: 15
dimensions:
- name: Store
value:
mode: FORMULA
formula: '"store"."Store"'
dbDataType: STRING
format: STRING
formatting: AUTO
displayCondition:
mode: DISABLED
color:
mode: DISABLED
onClick: []
measures:
- name: Profitability
value:
mode: FORMULA
formula: (sum("sale"."Sales amount") - sum("sale"."Cost") )/
sum("sale"."Sales amount") * 100
dbDataType: FLOAT
format: NUMBER
formatting: x.x[%]
display:
mode: STACK
lineThickness: THIN
showLabels:
enabled: true
size: 12
color:
mode: BASE
value: "#c5d4e0"
displayCondition:
mode: DISABLED
formattingTemplate: ""
- name: Cost
value:
mode: TEMPLATE
dbType: CH
tableName: sale
columnName: Cost
templateName: sum
dbDataType: FLOAT
format: NUMBER
formatting: AUTO
display:
mode: LINE
lineThickness: THICK
showLabels:
enabled: true
size: 12
color:
mode: BASE
value: "#078936"
displayCondition:
mode: DISABLED
chartType: STACK
lineSmoothing: true
orientation: HORIZONTAL
legend:
position: BOTTOM
align: CENTER
filterMode: DEFAULT
ignoreFilters: false
stateName: null
filters: []
sorting: []
Was the article helpful?