In this article, we will show you, How to Format Bar Chart in Power BI with example. This includes changing the Horizontal Bar Colors, Title text, Title position, Data labels, Axis Details, and background Colors etc.
To demonstrate these formatting options, we are going to use the Bar Chart that we created earlier. Please refer Power BI Bar Chart article to understand the steps involved in creating a Bar chart.
How to Format Bar Chart in Power BI
Please click on the Format button to see the list of formatting options that are available for this Bar Chart.
Format Bar Chart in Power BI General Section
Use this General Section to Change the X, Y position, Width and height of a Bar Chart
Format Y-Axis of a Power BI Bar Chart
Following are the list of options that are available for you to format the Vertical axis or Y-Axis.
You can see from the below screenshot, we change the Y-Axis labels Color to Green, Text Size to 12, Font style to Cambria. You can use Minimum category width, Maximum Size, and Inner Padding options to changed the horizontal bar widths
By default, Y-Axis title is set to Off, but you can enable it by toggling Title under the Y-Axis section to On. Let me change the Title Color to Brick Red, Title Text Size to 25, and Font style to Georgia.
Format X-Axis of a Bar Chart in Power BI
Following are the list of options that are available for you to format the Horizontal axis or X-Axis
As you can see from the below screenshot, we change the Color to Green, Font style to Cambria, Text Size to 13, Display Units to Thousands (default is Auto).
By default, X-Axis title is set to Off but you can enable it by toggling Title to On. Let me change the Title Color to Brick Red, Font style to Georgia, and Font Size to 25.
By toggling the Gridlines option from On to Off, you can disable the Grid lines.
- Color: You can change the Grid lines color.
- Stroke Width: Use this to change the Grid lines width. Here, we changed the width from default 1 to 2 strokes.
- Line Style: Choose the line style such as Solid, dotted, and dashed.
From the below screenshot, you can see the changes that we made to X-Axis.
Format data Colors of a Bar Chart in Power BI
If you add any valid column to Color Saturation field then you can use this Diverging option to add colors to the Bar Chart. By default it is Set to Off but you can enable those Diverging options by toggling Off to On
If you haven’t added any Filed under the Color Saturation section then Diverging option under the Data Colors section is replaced with the Default Color option like below
Let me add Minimum, Center, and Maximum color. Remember, you have an option to add the Minimum, Center, and Maximum values as well.
Enable Data Labels for Power BI Bar Chart
Data Labels will display the information about each and every individual horizontal bar. In this case, it will display the Sales Amount of each bar. To enable data labels, please toggle Data labels option to On.
Let me change the Color to Green, Display Units from Auto to Thousands, Font family to DIN, Text Size to 10, and Background color to Black with 90% transparency
Format Bar Chart in Power BI Plot Area
You can add Images as the Background of a Bar Chart using this Plot Area section. For the demonstration purpose, we added one image as the Plot Area Background.
Format Bar Chart in Power BI Title
By toggling the Title option from On to Off you can disable the Bar Chart title.
As you can see from the below screenshot, we change the Title Text to Sale Amount and Order Quantity by State province Name, Font Color to Green, Font Family to Georgia, Font Size to 23, and Title Alignment to center. If you want, you can add the background Color to the title as well.
Format Background Color, and Border of a Bar Chart in Power BI
You can add Background color to a Bar Chart by toggling Background option to On. And, you can add Borders to a Bar Chart by toggling Border option from Off to On.
Thank You for Visiting Our Blog