In this article, we will show you, How to Format Stacked Bar Chart in Power BI with example. This includes changing the Stacked Bar Colors, Title text, position, Data labels, Axis Fonts, and background Colors etc.
To demonstrate these formatting options, we are going to use the Stacked Bar Chart that we created earlier. Please refer Power BI Stacked Bar Chart article to understand the steps involved in creating a Stacked Bar chart.
How to Format Stacked Bar Chart in Power BI
Please click on the Format button to see the list of formatting options that are available for this Stacked Bar Chart.
Format Stacked Bar Chart in Power BI General Section
Use this General Section to Change the X Position, Y position, Width and height of a Stacked Bar Chart
Format Legend of a Stacked Bar Chart in Power BI
To display or enable the Legend, Please select the Legend region and toggle the option from Off to On. You can use the Position drop down box to change the legend position.
As you can see from the below screenshot, we added the Legend Title as Country Name, Legend Position as Top Center, Color to Brown, Font family to Corbel, and text size to 12.
Format Y-Axis of a Power BI Stacked Bar Chart
You can see from the below screenshot, we change the Y-Axis labels Color to Brown, Text Size to 18, Font style to Corbel. You can use Minimum category width, Maximum Size, and Inner Padding options to changed the 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 Green, Title Text Size to 30, and Font style to Cambria.
Format X-Axis of a Stacked Bar Chart in Power BI
As you can see from the below screenshot, we change the Color to Brown, Font style to Corbel, Text Size to 20, 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 Green, Font style to Cambria, and Font Size to 30.
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.
- Line Style: Choose the line style such as Solid, dotted, and dashed.
Format Power BI Stacked Bar Chart Data Colors
By Default Power Bi will allocate some default colors to each bar. Let me change the Color of United States to Pink.
Enable Data Labels for Power BI Stacked Bar Chart
Data Labels will display the information about each and every individual group of a horizontal bar. In this case, it will display the Sales Amount of each contry. To enable data labels, please toggle Data labels option to On.
Let me change the Color to White, Font family to DIN, and Text Size to 10
Format Stacked Bar Chart in Power BI Plot Area
You can add Images as the Background of a Stacked Bar Chart using this Plot Area section. For the demonstration purpose, we added one image as the Plot Area Background.
Format Stacked 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 by Color and Country Name, Font Color to Green, Font Family to Georgia, Font Size to 25, and Title Alignment to center. If you want, you can add the background Color to the title as well.
Format Background Color of a Stacked Bar Chart in Power BI
You can add Background color to a Bar Chart by toggling Background option to On. For the demonstration purpose we added the background color.
Format Border of a Stacked Bar Chart in Power BI
You can add Borders to a Line Chart by toggling Border option from Off to On.
Thank You for Visiting Our Blog