Bar Chart setup and configuration
This article describes how to add Vizlib Bar Chartto your Qlik dashboard and use the Setup Wizard to build and configure your visualization.
Vizlib Bar Chart Setup Wizard
Add a Bar Chart to Qlik dashboard
Before you can configure Vizlib Bar Chart, add it to your Qlik sheet as follows.
- Open Qlik Application.
- On the left panel, navigate to Assets > Custom Objects > Vizlib Library and select Vizlib Bar Chart.
- Drag and drop Vizlib Bar Chart into a sheet.
- (Optional) Drag the handles on the edges or corners of the chart to resize it.
You have added the chart to your Qlik dashboard. Now, you can set up Vizlib Bar Chart.
Setup a Bar Chart
Vizlib Bar Chart has a Setup Wizard to help you create a visualization quickly and easily, guiding you through several stages where you can customize the bar chart settings.
Setup Wizard
- In Visualization, select the chart type and mode and click Next. Review the following chart reference to find out which one suits your use case.
Icon Chart Visualization Dimensions Measures Comparison Trend
Group chart (bars displayed beside each other) with vertical orientation.
1 or 2 dimensions. The first dimension should be a time dimension.
Up to 4 measures if 1 dimension is selected. Only 1 measure if 2 dimensions are selected.
Comparison Categorical
Group chart (bars displayed beside each other) with horizontal orientation.
1 or 2 dimensions.
Up to 4 measures if 1 dimension is selected. Only 1 measure if 2 dimensions are selected.
Composition Absolute
Stack chart (bars displayed in a single column) with vertical orientation.
2 dimensions.
1 measure.
Composition Relative
100% stack chart (bars displayed in a single column as a proportion of 100%) with vertical orientation.
2 dimensions.
1 measure.
Distribution
Group chart (bars displayed beside each other) with vertical orientation.
1 dimension.
1 measure.
Build your own
Build a custom chart.
1 or 2 dimensions.
Up to 4 measures if 1 dimension is selected. Only 1 measure if 2 dimensions are selected.
-
In Dimension & Measure, drag and drop dimensions and measure into the preview window and click Next.
Selecting dimensions and measure
-
In Display & Theme, pick the theme and configure the following options:
- Show legend - if enabled, you can choose the legend position.
- Show grid
- Show values in all measures
Configuring display options
Click Next.
- In Finishing Touches, you can define chart title and subtitle. Click Create.
You have created a Bar Chart visualization.
Edit setup properties
Once you've built a Bar Chart, you can edit the Vizlib Bar Chart settings in the property panel. You can change the dimensions and measures in the Data section. You can find more information about Vizlib Bar Chart properties in the Vizlib Bar Chart introduction.
Vizlib Bar Chart Data
Add dimensions
Before you start, make sure that the chart is open in the edit mode.
- Navigate to Property Panel > Data > Dimensions and select Add.
- Select Dimension from the dropdown. Set the Field and Label, and click in the check box if you want to Include null values.
- Use the Calc. condition field to specify a conditional expression to show or hide the dimension when a condition is met.
Dimension
Add measures
Before you start, make sure that the chart is open in the edit mode.
- Navigate to Property Panel > Data > Measures and select Add.
- Enter the type of measure in the Expression field.
- Enter the measure's name in the Label field.
- Select a Number formatting option from the list: Auto, Number, Money, Date, Duration, Custom, or Measure expression.
- Set custom Formatting to set a Format pattern.
- Use the Calc. condition field to specify a conditional expression to show or hide the measure when a condition is met.
Measure
Use master item formatting with measures
If the measure has been created from a Master Item, you can choose to enable Master measure formatting, which means formatting for the measure will be taken from the master item definition (you can find master items in the Custom Objects menu in the left-hand panel).
This can help you apply formatting quickly across multiple charts when you slide the Master measure formatting toggle to the right.
Master Measure Formatting
You can also:
- Specify a Bar Color and set the Bar Opacity.
- Show or hide Data Values (you can choose to Show totals on stacks in a stacked chart).
- Select Include only bars (only show totals for measures represented as bars when Show totals on Stacks is selected).
- Select Show all values, or Show only totals.
- Enable Custom Tooltip to use your own HTML code for the tooltip.
Bar Color, Data Values, Custom Tooltip
Set sorting options
The Sorting tab controls how you order your data and has a default setting of Auto for both dimensions and measures.
Switch to Custom sorting to set your own values and sort by expression, numerically or alphabetically.
Sorting
Apply data handling options
Data Handling options allow you to:
- Pre-define Data downloading within the chart (by default, this is limited to the first 5000 rows).
- Suppress Zero Values.
- Show/Hide the chart depending on a Calculation condition.
- Enter a custom Displayed message.
Data Handling