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.
Or the percentage distribution of payment types across product subcategories.
|Beauty and health products||615K||373K|
|Health and beauty equipment||2046K||1380K|
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.
|Month||Home appliances||Household goods||Household cleaners|
Sections in the wizard
in the wizard
|Y||Dimensions. One or two dimensions can be specified. For the
|X||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. You may move Measure Names to the Y-axis.|
|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. Affects the sorting of columns.|
|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 bar chart
To create a normalized bar chart:
- On the Yandex DataLens home page, click Create chart.
- Under Dataset, select a dataset for visualization.
- Select Normalized bar chart as the chart type.
- Drag one or more dimensions from the dataset to the Y section. The values are 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 Colors section.
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 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.