Configure bar chart
A horizontal bar chart displays your categorical data in rectangular bars with lengths proportional to the values they represent. They are similar to column charts and are preferred when dealing with larger data and numbers. Stacked bar charts have sub-bars stacked from end to end and allow part-to-whole comparisons over time, or across categories. A variation of stacked bar chart — stacked percentage bar chart enables you to quickly check a specific percentage of the overall data.
Bar chart configuration includes getting values for the x and y axes.
Note: The bar chart is similar to the column chart. The difference is in the orientation. Here, the x-axis is the vertical axis facilitating enough space for description of the entities.
To configure a bar chart
- Edit your application.
- Select the required page, then open the page builder.
- Click the Chart option from the page elements menu on the left. A menu will slide in.
- Drag and drop a bar chart from the bar chart types available in the gallery. The Chart Configuration pane slides in from the right.
- Select a form to represent its data on the chart.
Note: The Form dropdown lists all the forms in the application you are currently working on. To select a form from another application, click the Change App in blue in the footer of the form dropdown. Select another application and click Done to view all the forms in it.
- Select a field to map the category axis (x-axis).
- Enter a label for the x-axis.
- Choose a value type to be displayed on the y-axis.
- Aggregate: Display the aggregate such as Sum or Count of the field.
- Actual: Display the actual value of the field.
- Enter a label for the y-axis.
- Evaluate for:
- All Records: Evaluates for all the records in the form.
- Selected Records: Evaluates for records based on the set criteria.
- To set criteria: Click Selected Records > Select Field > Select Operator > Enter a value . Choose AND or OR to add criteria.
- Click the Preview option at the top right of the chart configuration sheet.
- Close the preview window and make further edits to the chart or click Done to confirm submission.
To configure a stacked bar chart and Stacked percentage bar chart
- After Step 4 in the simple column chart configuration, choose a Stack by field from the drop down
- Continue configuring from Step 5. Below is a gif that shows the preview of a stacked percentage bar chart: