The stacked bar chart allows you to compare multiple measures through horizontally stacked bars.
A stacked bar chart requires at least one value element and one column element to be displayed. The measure
or expression
field that you want to analyze can be placed in the Value(s) block. The dimension that you want to use to categorize the measure can be placed in the Columns block. If you want to categorize based on a series, you can also place the corresponding dimension in the Rows block
.
The following steps explain how to configure data for the stacked bar chart.
Drag and drop the stacked bar chart onto a canvas and resize it to your desired size.
Click the Data Source
button in the configuration panel.
Click the CREATE NEW
button to initiate a new connection from the connection type panel.
In the connection type panel, click on any one of the listed connection type buttons. (Here, the Microsoft Excel
connection type is selected for demonstration.)
In the NEW DATA SOURCE
configuration panel, fill in the connection type and related details. Then, click the Connect
button.
Drag your preferred table or view from the left pane in the data design view and click the Save
button.
Click the Properties
button in the configuration panel to open the property pane. Now, switch to the ASSIGN DATA
tab.
The data tab will be opened, displaying the available measures and dimensions from the connected data source.
You can input the necessary data from Measures
and Dimensions
into the designated field.
You can add more than one Measures
into the Value(s)
field by dragging and dropping the required measure.
Click the Settings
option to change the name by using the Rename
option and selecting the required summary type from the available summary types shown in Settings.
You can filter the data to be displayed in a funnel chart by using a filter. For more details, refer to the filter.
To remove the added value fields, click the highlighted button.
You can add more than one column from the Dimensions
field to the Y Values
field.
You can add more than one value to the Columns
field. If you add more than one column, then the drill-down option is automatically enabled.
The stacked bar chart will be rendered in this manner.
You can change the settings
.
The field names that have been configured can be edited by using the Rename
option provided in the settings menu.
You can Sort
the dimension data using the Sort
option located in the Settings
menu list. To apply sorting to the data, refer to the Sort.
To apply filters, select the Filter(s)
in the settings. For more details, refer to the filter.
To display all records, click on Show All Records
.
Similarly, you can add the Measures
and Expression Columns
into column field.
You can drag and drop the Dimension
into the Rows
field.
If necessary, you can apply a filter and sort option for the rows field.
This will render a stacked bar chart in a series.
You can format the stacked bar chart for a better illustration of the view you require through the settings available in the Properties
tab.
To configure data into a stacked bar chart, follow these steps:
Drag and drop the stacked bar chart onto the canvas and resize it to your desired size.
Configure the data for the stacked bar chart.
Focus on the stacked chart and click on the widget settings.
The property window will open.
You can view the list of properties that are available for the widget, with the default value.
This feature allows you to set the title
for the stacked column chart widget.
This feature allows you to set a subtitle
for this stacked-column chart widget.
This allows you to provide a brief explanation about this stacked-column chart widget.
This option allows you to toggle the visibility of tooltips in a chart.
It animates the measure values when you toggle the Enable Animation.
This feature enables you to switch the visibility of value labels.
If you disable the Show Value Labels
properties, the dependent properties, which are color, Value label position, Value label rotation and Value label suffix will be hidden.
This allows you to customize the color of the value label.
This option allows you to customize the position of value labels in a chart. By default, it is set to Auto
, so the label position for a stacked bar chart will be set to the middle.
This allows you to define the rotation angle for displaying the value labels.
This option allows you to increase or decrease the width of the column by using the Column Width
feature.
This option allows you to increase or decrease the space between the columns by using the Column Spacing
.
A legend is a text used to describe the plotted data. This allows you to toggle the visibility of the legend in a chart and also change the position of the legend text by selecting through a combo box.
Enabling the option of Custom Legend Text will allow you to define custom text (using the text area) to display for each legend series (selected through the combo box) in a chart.
The legend interactivity
option in the chart allows you to control the behavior of the chart legends. It provides the option to make the chart legends non-clickable, which can be particularly useful in situations where you do not want users to hide or show series data by clicking on the legend. This feature can also be beneficial when displaying important data that should always be visible for accuracy and context.
Disabling the Interactivity feature in the Legend Settings category does not allow you to click on the legends.
Enabling the Interactivity feature in the Legend Settings category allows you to click on the legends.
This option enables you to modify the title and label colors of the chart legend.
Legend Alignment enables you to control how the legend is positioned within its allocated space. For detailed guidance, refer to the Legend Alignment section.
This allows you to change the shape of the legend.
Circle
This option allows you to change the shape of the legend to a Circle
.
Series Type
This option allows you to change the shape of the legend in Series.
This allows you to add the legend title for the chart, which will be reflected with the Show Legend.
This option enables you to customize the legend text according to the value of the Text Width
property.
None
This option allows you to display the legend items without wrapping or trimming them.
Trim
This option allows you to trim the legend items if their legend exceeds the value of Text Width
.
Wrap
This option allows you to wrap legend items based on the value of Text Width
.
This option allows you to set the maximum width for the Legend Items, and it is applicable only if text-overflow is set as Trim or Wrap.
If you uncheck the Show Legend
property in the property panel, the dependent properties, which are Legend color, Legend position, customization button and Legend title are also hidden.
NOTE: For single series, Legend wont be visible.
This option enables you to format the values of the primary and secondary axis using the formatting details provided by clicking the Format
button. For more information, please consult the measure format.
This section allows you to customize the axis settings in the chart.
This feature allows you to customize the color of the axis title.
This feature allows you to customize the color of the axis label.
This allows the visibility of the Category Axis
to be enabled.
If you disable the Show Category Axis
option, dependencies properties, which are Show axis title, Axis title text, Trim overflow mode, Trim axis labels, Label Rotation and Auto Interval option will be hidden.
This allows you to edit the title of the Category Axis
for the chart. It will be reflected as the name of the x-axis in the chart.
If we uncheck the Show Axis Title
property, the Axis title text box property will be hidden.
This allows you to manage the display mode of the overlapping labels in the Category Axis
.
Trim
This option trims the end of the overlapping label on the axis.
Hide
This option hides the overlapping label on the axis.
This option allows you to trim the axis labels based on the value of the Maximum Label Width
property.
This option allows you to set a maximum width for the axis labels, and it can also be customized when the trim axis label
option is enabled.
This allows you to define the rotation angle for displaying the category axis labels.
By default, the Auto Interval
property is enabled. The Auto Interval property is used to automatically set intervals based on the number of data points for category axis labels. If the user wants to customize the interval, they need to disable the auto interval and set the desired interval.
This allows you to enable the Primary Value Axis
for the chart.
If you disable the Show Primary Axis
option, dependencies properties, which are Axis title, Axis title text, Axis type and Axis Format properties will be hidden.
This allows you to edit the Primary Value Axis
title. It will reflect in y-axis name of chart.
By default, the chart axis shows positive values at the top and negative values at the bottom. However, there are times when we need to invert the axis and display negative values at the top and positive values at the bottom. For example, when we bind temperature data to the chart and want to display negative values at the top, we can utilize this property.
When this property is enabled, the chart will display negative values at the top and positive values at the bottom.
This allows you to manually set the minimum, maximum, and interval values of the primary value axis through the Axis Range Settings
dialog.
It will be reflected in the primary value axis of the chart.
This feature allows you to dynamically set the minimum, maximum, and interval values of the primary value axis through the Axis Range Settings
dialog, using the dashboard parameter values. Only number-type dashboard parameter values are allowed in the axis range properties. You can create multiple types of dashboard parameters.
For more details about dashboard parameters, please refer to the Dashboard parameter documentation.
A single value is stored in this type of parameter.
Click on the axis range settings dialog and enter @
in any textbox (minimum, maximum, and interval). Select the parameter value (Only number type parameter values are allowed).
Now, the parameter value is reflected on the chart axis.
If you want to use the same ranges in multiple cases, create a parameter value of the range type. This type of parameter includes both the start and end values.
Create a parameter in range type.
Please click on the axis range settings dialog and enter @
in any textbox (minimum, maximum, and interval). The range parameter is divided into start and end parameters. The value entered in the first textbox is stored in the start parameter, while the value entered in the second textbox is stored in the end parameter. Please select a parameter value (only Number type parameter values are allowed).
The value of the parameter is reflected on the chart axis.
Create a parameter within the data source type. Within this parameter, select any field. The value will be determined by the selected field’s value.
Click the axis range settings dialog and enter @
in any textbox (minimum, maximum, and interval). Then, select the parameter value.
The value of the parameter is reflected in the axis of the chart.
This option enables you to format the values on the primary and secondary axes using the formatting details provided through the Format button. For additional information, please refer to this measure format.
This allows you to enable the gridlines for the Primary Value Axis
in the stacked bar chart.
This allows you to enable the gridlines for the Category Axis
in the stacked bar chart.
This enables you to enable the gridlines for the Secondary Value Axis
in the stacked bar chart.
This section enables you to customize the font size of chart elements.
By default, the ‘Auto Font Size’ property is enabled. The auto font-size property is used to set the font size based on the resolution of the client machine viewing the dashboard. If the user wants to customize or set a fixed font size, then they need to disable the auto font size and set the required font size.
This section enables you to customize the Container Appearance
for the stacked bar chart widget.
This allows you to handle the alignment of the widget title to either the left, center, or right.
This allows you to apply the text color
to the widget title.
By enabling Auto Font Size, the title’s font size will automatically adjust if the screen resolution changes.
Font Size
This allows you to apply the specified font size to the widget title if the Title Auto Font Size is disabled. The value can be between 10 and 44.
When Auto Font Size is enabled, the subtitle’s font size will be automatically adjusted if the screen’s resolution varies.
Font Size
This allows you to apply the specified font size to the widget title if the Subtitle Auto Font Size is disabled. The value can range from 10 to 32.
When Auto Padding is enabled, the padding of the widget container will be adjusted automatically if the size of the widget varies.
Padding
This allows you to customize the padding of the widget container if the Auto Padding is disabled. The value can be between 0 and 25.
This feature allows you to switch the visibility of the border
surrounding the widget.
This allows you to apply the specified radius
to the widget corners if the Show Border is enabled. The value can be between 0 and 10.
This feature enables you to select the background image for the stacked bar chart widget.
This allows you to set the background color to the stacked bar chart widget.
This property allows you to specify the transparency for the background color.
This feature enables you to switch the visibility of the shadow
surrounding the widget.
This section allows you to customize the Container actions
for the stacked bar chart widget.
This allows you to enable or disable the widget title
of the stacked bar chart.
This allows you to enable or disable the maximized mode
of the stacked bar chart widget. The visibility of the maximize icon in the widget header will be defined based on the setting in the viewer.
This allows you to enable or disable the CSV export
option for the stacked bar chart widget. Enabling this allows you to export the summarized data of the widget view to CSV format in the viewer.
This allows you to enable or disable the Excel export
option for the stacked bar chart widget. Enabling this allows you to export the summarized data of the widget view to (.xlsx or .xls)
format in the viewer.
This allows you to enable or disable the Image export
option for the stacked bar chart widget. Enabling this allows you to export the view of the widget to image format (.jpg), (.png), or (.bmp)
in the viewer.
This allows you to enable or disable the PDF export
option for the stacked bar chart widget. Enabling this allows you to export the view of the widget to pdf format in the viewer.
This allows you to enable or disable comment
for the dashboard widget. For more details, refer to the Commenting Widget.
This allows you to visualize the raw data associated with a widget at runtime.
To learn more about viewing the underlying widget data, refer to the view data documentation.
This allows you to pin the widget.
We hide the widget elements based on the size of the widget for better readability.
When the chart has been placed with fewer than 7 columns on the X-axis, the X-axis labels and titles will be hidden.
When the chart has fewer than 6 rows, the Y-axis labels, Y-axis titles, and gridlines will be hidden.