This layer allows you to add an area chart to your current visualization. This layer works like the Line Chart layer. Here, we draw two lines which represent the lower and upper limits of an area. A group variable can be filled in by the user, thus allowing him to link the characteristics of the areas to this variable.
Configure an area chart in ZENPLOT®
In order to create an area chart in ZENPLOT®, you need to fill in:
- The dataset you want to use
- The variable corresponding to the coordinates of the abscissas of the areas (X)
- The variable corresponding to the coordinates of the minimum ordinates of the areas (Ymin)
- The variable corresponding to the coordinates of the maximum ordinates of the areas (Ymax)
- The variable corresponding to the groups (optional)
The coordinates on the x-axis can be qualitative or quantitative, the coordinates on the y-axis are necessarily quantitative. The group variable is inevitably qualitative.
Customize an area chart in ZENPLOT®
You can easily customize:
- Area border(thickness, type, color)
- Area color
In ZENPLOT®, 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 areas of the layer will have the same style applied for that characteristic (the same color, the same thickness, or the same type of line).
By binding the characteristic to a variable in the dataset
In this case, all the areas of the layer will have a different style for this characteristic depending on the value they take for the linked variable.
When binding to a qualitative variable, you must choose a style for each category of the variable.
When binding to a quantitative variable, you must define a minimum, median, and maximum value. A gradient is thus produced.