Introduction: Lollipop Bar Chart
Declutter your comparisons with a Lollipop Bar Chart
Standard bar charts are ideal for showing a single measure per category so you can easily compare each of the categories with the rest. However, if you have larger number of categories (>10) in a bar chart it is possible the chart itself becomes “heavy” because large part of the surface of the chart will be filled with the bar color(s).
To avoid this clutter one can use the Lollipop Bar Chart as an alternative to the standard bar chart. It shows a marker (shape, by default a dot) per category at the corresponding measure value for each category. The marker is connected to the measure-axis origin by a subtle line. The marker combined with the line make it a Lollipop Chart.
Key features of the Lollipop Chart are:
- Format objects: each of the data point objects (shape and line) can be formatted by selecting a color and size. Additional, the line can be switched on/off and for the shape one can switch on/off the fill color;
- Axis formatting options: in line with the options you know from the Power BI Clustered column chart, so no need to learn a new interface;
- Selection & Highlighting: like in standard Power BI charts you can make use of the Selection & Highlighting functions within the Lollipop Chart;
- Context menu: like in standard Power BI charts you have access to the context menu to Include/Exclude data points;
- Full Tooltip support: besides the default Tooltip behavior (show the value of the element you hover) you can also add additional feeds to the tooltip;
- Full Bookmark support: like any of the standard visuals the Lollipop Bar Chart supports Bookmarks.
How to use: Build visual
The Build visual pane contains the variables of the data. Of the three fields you need to specify at least the first two fields, being: Axis and Values. Tooltips is optional.
- Axis: here you add the field(s) containing the categories you want to place on the y-axis. If you place multiple fields here (like in the example to the left) you can drill through the different fields as if they were levels of a hierarchy. You can also use any hierarchy you already have in your data set.
- Values: this is where you specify the measure as it will be displayed on the x-axis. The value of this measure will determine the location of each category marker on the y-axis scale. By default it will SUM all the values per category, but you can also select any of the other aggregation functions (like Average, Minimum, Maximum, Count, etc.).
- Tooltips: the fields added here will show in the tooltip when the user hovers over a specific data point.
How to use: Format visual
The Visual specific settings contain formatting properties that allow you to change the default behavior of the visual, besides the standard format sections there are a number of additional format sections that allow you to change the default behavior of the visual:
- License: here you can enter your license information to disable any license reminders.
- Y-Axis: the formatting options for the y-axis (category axis) are similar to the options available within the Clustered bar chart (standard Power BI visual). These familiar options allow you to change the visibility and formatting of the y-axis elements (like: title, labels, grid lines, etc.).
- X-Axis: the formatting options for the x-axis (value axis) are similar to the options available within the Clustered bar chart (standard Power BI visual). These familiar options allow you to change the visibility and formatting of the x-axis elements (like: begin and end values, display units, decimal places, grid lines, etc.).
- Data point: within this section you can change the format of the lollipop itself (shape and line). First you can change the shape color (=Data color) and switch the fill of the marker on/off (=Fill). It also allows you to change the size of the shape (=Size). The remaining settings are for the line connecting the shape to the x-axis. The line itself can be hidden by switching the toggle to off (=Lines). Finally, the line width (=Line width) and color (=Line color) can be changed.
- Data labels: within this section you can change the format of the data labels. You can adjust the color, size and font but also change the display units, decimal places or add a background.
The General settings contain options that affect the visual container and are consistent across all visual types. Here you can also customize the general Title and Tooltips.
How to use: Analytics
You can highlight many interesting trends and insights by creating dynamic reference lines with the Analytics pane. To see the analytic lines, select the visual and click the Analytics icon (magnifying glass).
Available Analytics lines:
- Constant line: displays the value specified, helps to track metrics and desired goals
- Min line: displays the lowest value points on the axis
- Max line: displays the highest value points on the axis
- Average line: displays the data average
- Median line: displays the middle value
- Percentile line: displays the value (or score) below which x% of the observations may be found
Format your line by specifying the Color, Transparency percentage, Line style, width and position.
If you want to have a data label, switch Data label to On. You get additional formatting options for your data label, such as: Color, Transparency, Text, Horizontal and Vertical position, Display units and Value decimal places.
For any questions or remarks about this Visual, please contact us by email at Nova Silva Support.