A bar chart displays trends over time and compares values across different categories. You can add data to a bar chart and configure its style.
Prerequisites
You have created a DataV screen. For more information, see Create a DataV screen.
Example

Add Data
-
In the Charts tab of the Component library area, find the bar chart and drag it to the canvas.

-
Click Select a dataset, and follow the instructions in the figure below to add data. The updated icon is shown below.

You can also do the following with the data:
Set field formats in bulk (①). For details, see Configure field styles in batches.
Set a field filter (②). For details, see Filter data.
Set automatic data refresh (③). For details, see Refresh data on a schedule.
Switch datasets (④). For details, see Switch datasets.
Edit the dataset (⑤). For details, see Edit a dataset.
Transform data (⑥). For details, see Create a calculated field and Create a grouped dimension.
Duplicate a field (⑦). For details, see Duplicate a field as a dimension.
Configure Chart Styles
Position and Size
The configuration panel provides the following component settings:
-
Alignment (①): Adjusts the alignment of the component: left, center, or right.
-
Position (②): Sets the X and Y coordinate values to adjust the component's position relative to the top-left corner of the canvas.
-
Rotation (③): Sets the rotation angle of the component.
-
Size (④): Sets the width (W) and height (H) of the component.
-
Lock component (⑤): Locks the component to prevent changes to its size or position.
-
Opacity (⑥): Sets the transparency of the component.

Plot Area
The Plot area section provides the following settings:
-
Color palette: Sets the color scheme for the bars.
-
Bar orientation: Sets the orientation of the bars to horizontal or vertical.
-
Bar style: Configures the bar width, the spacing between bars in the same group, and the corner radius.
-
Show data labels: Toggles the display of data labels. You can also configure the display mode (including showing all labels) and text style.
When all data labels are shown, label positions are automatically adjusted to prevent overlap. Labels that extend beyond the axis area may be hidden. To override this behavior, select Allow data labels to overlap.

Legend
The Legend section provides the following settings:
-
Show legend: Toggles the display of the legend.
-
Position: Sets the position of the legend.
-
Text: Sets the font size and color of the legend text.

X-axis
The X-axis section provides the following settings:
-
Show X-axis: Toggles the display of the X-axis.
-
Axis title: Show or hide the axis title and its unit. If displayed, you can configure the title text, unit text, font size, and color.
-
Axis line: Show or hide the axis line. If displayed, you can configure its color.
-
Axis label and ticks: Show or hide the axis labels and ticks. If displayed, you can configure the text color of the labels and the style of the ticks.
-
Grid line: Show or hide the grid lines. If displayed, you can configure their width and color.

Y-axis
The Y-axis section provides the following settings:
-
Show Y-axis: Toggles the display of the Y-axis. You can also set its position, value range, and specify a maximum and minimum value.
-
Axis title: Show or hide the axis title and its unit. If displayed, you can configure the title text, unit text, font size, and color.
-
Axis line: Show or hide the axis line. If displayed, you can configure its color.
-
Axis label and ticks: Show or hide the axis labels and ticks. If displayed, you can configure the text color of the labels and the style of the ticks.
-
Grid line: Show or hide the grid lines. If displayed, you can configure their width and color.

Tooltip
Configure how tooltips are displayed.

|
Parameter |
Description |
|
Display mode |
Specifies the tooltip display mode: By data point or By dimension value. |
|
Content |
If Display mode is set to By data point, you can display the percentage. If Display mode is set to By dimension value, you can display the total and the percentage. |
|
Background color |
Sets the background color of the tooltip. |
|
Text |
Sets the style of the tooltip text. |
The following figure shows an example.

Series Settings
The Series settings section provides the following per-series settings:
You can set the Alias and Series Value Display Format in the Series Settings panel only when Color Legend/Dimension is enabled in the Field configuration panel.
-
Select series: Selects a dimension or measure for the series.
-
Alias: Sets a display name for the field.
-
Show data labels: Configures the Value display format and Text style for the data labels. The value display format has two modes: Automatic and Custom.
-
Automatic (Default): The series value format inherits the data display format settings of the corresponding measure field.
-
Custom: Click the
icon to open the Data Display Format Settings dialog box and configure the data format. For more information, see Data display format > Custom.
-
-
Show maximum/minimum value: Toggles the display of the maximum and minimum values in the chart. You can configure the position, content, background color, and text style of the value labels.
-
Apply style to: Applies the current style to other measures.
