title | titleSuffix | description | author | ms.author | ms.date | ms.topic | ms.service | services |
---|---|---|---|---|---|---|---|---|
Add a bar chart layer to an Azure Maps Power BI visual |
Microsoft Azure Maps |
In this article, you will learn how to use the bar chart layer in an Azure Maps Power BI visual. |
stevemunk |
v-munksteve |
11/29/2021 |
conceptual |
azure-maps |
azure-maps |
The Bar chart layer is useful for taking data to the next dimension by allowing visualization of location data as 3D bars or cylinders on the map. Similar to the bubble layer, the bar chart later can easily visualize two metrics at the same time using color and relative height. In order for the bars to have height, a measure needs to be added to the Size bucket of the Fields pane. If a measure is not provided, bars with no height show as flat squares or circles depending on the Bar shape option.
:::image type="content" source="./media/power-bi-visual/bar-chart-layer-styled.png" alt-text="A map displaying point data using the bar chart layer":::
Users can tilt and rotate the map to view your data from different perspectives. The map can be tilted or pitched using one of the following methods.
- Turn on the Navigation controls option in the Map settings of the Format pane. This will add a button to tilt the map.
- Press the right mouse button down and drag the mouse up or down.
- Using a touch screen, touch the map with two fingers and drag them up or down together.
- With the map focused, hold the Shift key, and press the Up or Down arrow keys.
The map can be rotated using one of the following methods.
- Turn on the Navigation controls option in the Map settings of the Format pane. This will add a button to rotate the map.
- Press the right mouse button down and drag the mouse left or right.
- Using a touch screen, touch the map with two fingers and rotate.
- With the map focused, hold the Shift key, and press the Left or Right arrow keys.
The following are all settings in the Format pane that are available in the Bar chart layer section.
Setting | Description |
---|---|
Bar shape | The shape of the 3D bar. • Box – Bars rendered as rectangular boxes. • Cylinder – Bars rendered as cylinders. |
Height | The height of each bar. If a field is passed into the Size bucket of the Fields pane, bars will be scaled relative to this height value. |
Scale height on zoom | Specifies if the height of the bars should scale relative to the zoom level. |
Width | The width of each bar. |
Scale width on zoom | Specifies if the width of the bars should scale relative to the zoom level. |
Fill color | Color of each bar. This option is hidden when a field is passed into the Legend bucket of the Fields pane and a separate Data colors section will appear in the Format pane. |
Transparency | Transparency of each bar. |
Min zoom | Minimum zoom level tiles are available. |
Max zoom | Maximum zoom level tiles are available. |
Layer position | Specifies the position of the layer relative to other map layers. |
Note
If the bars have a small width value and the Scale width on zoom option is disabled, they may disappear when zoomed out a lot as their rendered width would be less than a pixel in size. However, when the Scale width on zoom option is enabled, additional calculations are performed when the zoom level changes which can impact performance of large data sets.
Change how your data is displayed on the map:
[!div class="nextstepaction"] Add a bubble layer
[!div class="nextstepaction"] Add a heat map layer
Add more context to the map:
[!div class="nextstepaction"] Add a reference layer
[!div class="nextstepaction"] Add a tile layer
[!div class="nextstepaction"] Show real-time traffic
Customize the visual:
[!div class="nextstepaction"] Tips and tricks for color formatting in Power BI
[!div class="nextstepaction"] Customize visualization titles, backgrounds, and legends