Normalized bar chart
A normalized bar chart shows the contribution, as a percentage, of multiple measures in the total amount by period or category. Unlike a stacked bar chart, the proportion of segment ratios and not the total bar length is important for this type of chart. Segments are highlighted in different colors and located one after the other. The length of a segment indicates its ratio to the total amount represented as 100%. For example, the percentage of expenses in the annual budget.
Source table
Month | Gasoline | Rent | Food | Utility bills |
---|---|---|---|---|
January 2019 | 100 | 600 | 300 | 500 |
February 2019 | 150 | 600 | 250 | 700 |
March 2019 | 100 | 600 | 450 | 400 |
April 2019 | 120 | 600 | 370 | 510 |
May 2019 | 100 | 600 | 300 | 530 |
June 2019 | 130 | 600 | 310 | 600 |
July 2019 | 150 | 600 | 330 | 510 |
August 2019 | 120 | 600 | 250 | 550 |
September 2019 | 110 | 650 | 380 | 500 |
October 2019 | 120 | 650 | 300 | 550 |
November 2019 | 130 | 650 | 310 | 540 |
December 2019 | 100 | 650 | 400 | 550 |
Or the percentage distribution of payment types across product subcategories.
Source table
Subcategory | Delivery | Pickup |
---|---|---|
Beauty and health products | 615К | 373К |
Kitchenware | 1,929К | 1,005К |
Kitchen products | 1,217К | 759К |
Detergents | 1,210К | 803К |
Health and beauty equipment | 2,046К | 1,380К |
Non-essential goods | 1,368К | 894К |
Cleaners | 1,237К | 673К |
A normalized bar chart shows the contribution, as a percentage, of each category in the total measure value over a time interval. For example, the percentage of sales for different product categories.
Source table
Month | Home appliances | Household goods | Household cleaners |
---|---|---|---|
January 2019 | 128К | 55К | 26К |
February 2019 | 97К | 79К | 18К |
March 2019 | 187К | 105К | 41К |
April 2019 | 188К | 137К | 34К |
May 2019 | 230К | 121К | 43К |
June 2019 | 256К | 162К | 59К |
July 2019 | 284К | 206К | 67К |
August 2019 | 409К | 204К | 72К |
September 2019 | 314К | 209К | 86К |
October 2019 | 324К | 262К | 79К |
November 2019 | 385К | 238К | 101К |
December 2019 | 451К | 307К | 111К |
Wizard sections
Wizard section |
Description |
---|---|
Y | Dimensions. You can specify one or two dimensions. For the Date and Date and time types, you can set grouping by time: minutes, hours, weeks, and so on. |
X | Measure. You can specify multiple measures. If you add more than one measure to a section, the Colors section will contain a dimension named Measure Names. You can move Measure Names to the Y axis. |
Colors | Measure Names dimension or field. Affects the color of lines. To remove Measure Names, delete measures from the Y axis. |
Sorting | Dimension or measure. Affects the column sorting. The sorting direction is marked with an icon next to the field: |
Labels | Measure. Displays measure values on the chart. If multiple measures are added to the Y section, drag Measure Values to this section. Markup functions are supported. For String type fields, you can configure using basic Markdown syntax: click the icon before the field name and enable Markdown. |
Filters | Dimension or measure. Used as a filter. |
Creating a normalized bar chart
To create a normalized bar chart:
Warning
If you use a new DataLens object model with workbooks and collections:
- Go to the DataLens home page
. In the left-hand panel, select Collections and workbooks. - Open the workbook, click Create in the top-right corner, and select the appropriate object.
Follow the guide from step 4.
- Go to the DataLens home page
. - In the left-hand panel, select
Charts. - Click Create chart → Chart.
- At the top left, click
Select dataset and specify the dataset to visualize. - Select Normalized bar chart as the chart type.
- Drag one or more dimensions from the dataset to the Y section. The values will be displayed on the Y axis.
- Drag one or more measures from the dataset to the X section.
- Drag a dimension from the dataset or the Measure Names field to the Color section.
Recommendations
-
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.
- Do not display more than three to five segments on the chart.
- When visualizing multiple measures, select colors carefully. They should be distinguishable and contrasting. We recommend using no more than 3-5 colors per chart. If you want to emphasize one certain measure above the others, highlight it in some bright color.