Normalized stacked area chart
A normalized stacked area chart shows changes to the contribution of each category in a measure value over a time interval. Areas are highlighted in different colors and located above each other. The chart shows the percentage of areas and not their absolute value. The width of an area indicates its ratio to the total amount represented as 100%. For example, the percentage of different expenses in the total budget amount.
This type of chart is used to show a change to the proportion of categories, while their totals are not critical. For example, to show how the percentage of product categories changes in the total sales amount.
|Month||Home appliances||Household goods||Household cleaners|
Sections in the wizard
in the wizard
|X||Dimension. Only one field can be specified. This dimension is usually a date. In this case, make sure that the
|Y||Measure. You can specify multiple measures. If you add more than one measure to a section, the Colors section contains a dimension named Measure Names.|
|Colors||Dimension or the Measure Names field. Affects the color of lines. Measure Names is removed by deleting measures from the Y-axis.|
|Sorting||Dimension or measure. A dimension from the X and Colors sections or a measure from the Y-axis can be used. Affects the sorting of values on the X-axis or areas along the Y-axis.|
|Signatures||Measure. Displays measure values on the chart. If multiple measures are added to the Y section, drag Measure Values to this section.|
|Chart filters||Dimension or measure. Used as a filter.|
Creating a normalized stacked area chart
To create a normalized stacked area chart:
- On the DataLens home page, click Create chart.
- Under Dataset, select a dataset for visualization.
- Select Normalized stacked area chart as the chart type.
- Drag a dimension from the dataset to the X section. The values are displayed in the lower part of the chart on the X-axis.
- Drag one or more measures from the dataset to the Y section. The values are displayed as areas along the Y-axis.
- Drag a dimension from the dataset to the Colors section. Colored areas will indicate the share of an individual category in the total measure value.
If the values of the categories contain a large amount of text, try to reduce it. Then the signatures on the diagram will look more accurate. You can use string functions in the calculated fields or conditional operators CASE.
Don't display more than 3-5 areas on the chart.
To make it easier to track the dynamics, place the largest or most important categories closer to the chart base. To do this, drag the desired measure to the Sorting section or set up their order in the Y section. For example, when comparing budget expenses.Chart example
To monitor the budget spending dynamics by the
Gasolinecategory, place it close to the chart base.Chart example
If there is another important category, place it by the upper boundary of the chart. This way the areas will have clear boundaries to help visually compare their values. For example, to compare
To display the absolute values of variables, use a stacked area chart.