You can use a chart grouped by dimension to compare the values of a single measure for two or more categories.
For example, grouping by delivery type allows you to compare the cost of products delivered by courier and picked up. Categories are highlighted in different colors and the length of the bar indicates the measure value.
Example
Visualization
Source table
Subcategory
Delivery
Pickup
Beauty and health products
12K
32K
Kitchenware
394K
998K
Kitchen products
371K
749K
Detergents
127K
278K
Health and beauty equipment
497K
1,263K
Non-essential goods
268K
560K
Use a grouped chart to compare two or more measures, e.g., the number of orders and the number of products. The bar length corresponds to the measure value.
A stacked chart shows a ratio of internal segments to the total value.
Segments are placed one after another, where the beginning of each next segment is the outer boundary of the previous one.
Use this chart type to see how each measure contributes to the total by period or category, e.g., to view the percentage of each expense category in the total budget.
Dimensions. You can specify one or two dimensions.
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 column color. To delete Measure Names, click the cross icon or remove measures from the X axis.
Sorting
Dimension or measure. Affects the column sorting. The sorting direction is marked with an icon next to the field: for ascending or for descending. To change the sorting direction, click the icon.
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 in DataLens On-premises syntax: click the icon before the field name and enable Markdown.
The chart columns will be colored based on the values of all measures listed in section X.
Example
Configure a color gradient for the measure as well. To do so, in the top-right corner of the Colors section, click (the icon is displayed when you hover over the section).
In the color settings, specify:
Gradient type: Select two or three colors.
Gradient color: Select a color palette for the gradient from the list.
Gradient direction: Change the gradient direction using the icon.
Set threshold values: Set numeric thresholds for each color. Works if the X section contains a single value.
Labels. If the category values are too verbose, make them shorter so that the chart labels look neater.
You can use string functions in calculated fields or the CASE conditional statements.
Place segments inside bars so that the largest or most important categories are located to the left, closer to the chart's Y-axis. This makes it easier to compare the values.
Dimension or measure. It affects the intensity of point fill.