Bar Chart

This tutorial shows how to configure and customize a Bar chart layer into ZENPLOT® for your future visualizations.

Do you want to try ZENPLOT® out? You can Download the trial version at any time!

1. Data

In this tutorial, we use the dataset iris barchart, which corresponds to a restructuring of the iris dataset of the Scatter Plot tutorial.

The 4 quantitative variables were transformed into 1 quantitative variable and 1 qualitative variable.

It contains 600 observations, described by 3 variables :

  • Value, quantitative variable: the value of the variable for this observation
  • Variable, qualitative variable: the variable name (Length/Width od the Sepals/Petals)
  • Species, qualitative variable: Setosa, Versicolor ou Virginica


Fisher M. (1936). The Use of Multiple Measurements in Taxonomic Problems. Annals of Eugenics, 7, pp 179 -188.

2. Configure a Bar Chart into ZENPLOT®

To create a Bar Chart layer, click on Add a layer and select the Bar Chart layer.

Tutorial Bar Chart step 1 Tutorial Bar Chart step 2

The height of bars can correspond to the sum, average, minimum or the maximum of a category.

You must enter:

  • The dataset you want to use (here, iris_barchart)
  • The variable corresponding to the X coordinates: a qualitative variable
  • The variable corresponding to the Y coordinates (facultative): a quantitative variable
  • The function required to calculate the height of the bars (min, max, sum or average) if an Y coordinates variable has been entered

Tutorial Bar Chart step 3

3. Customize a Bar Chart layer in ZENPLOT®

Once the Bar Chart layer is created, different options are available in the options bar.

You can choose two ways to customize the characteristic of an element:

By imposing a uniform style on all elements

In this case, all the bars of the layer will have the same style applied for that characteristic (same border or same color).

Tutorial Bar Chart step 4

By binding the characteristic to a variable in the dataset

In this case, all the bars on the layer will have a different style for that characteristic depending on the value they take for the linked variable.

For the Bar Chart layer, only qualitative variables can be linked to a characteristic. You must therefore choose a style for each category of the variable.

Tutorial Bar Chart step 5

3.1 Layer setting

You can reconfigure your layer at any time (change datasets, variables, etc.)

Tutorial Bar Chart step 7

3.2 Border options

3 border options are available:

  • Thickness
  • Type
  • Color

Tutorial Bar Chart step 7

3.3 Filling options

Tutorial Bar Chart step 8

3.4 Bars width

This characteristic cannot be linked to any variable.

Tutorial Bar Chart step 9

3.5 Bars stacking

Tutorial Bar Chart step 10