In this article, we will show you, How to Format Power BI Line and Stacked Column Chart with example. This includes changing the Line Strokes, Stacked Column colors, Title position, Axis Details etc.
To demonstrate these formatting options, we are going to use the Line and Stacked Column Chart that we created earlier. Please refer Line and Stacked Column Chart in Power BI article to understand the steps involved in creating a Line and Stacked Column Chart.
How to Format Power BI Line and Stacked Column Chart
Please click on the Format button to see the list of formatting options that are available for this Line and Stacked Column Chart.
Format Power BI Line and Stacked Column Chart General Settings
Use this General Section to Change the X, Y position, Width and height of a Line and Stacked Column Chart
Format Legend of a Line and Stacked Column Chart in Power BI
First, we used the Position drop down box to change the legend position to Top Center. Next, we changed the Color to Brick Red, Font family to Cambria, and text size to 16.
Format X-Axis of a Line and Stacked Column Chart in Power BI
Following are the list of options that are available for you to format X-Axis. Here, we changed the Color to Brown, font family to Candara, and Text Size to 14.
As you see from the above screenshot, by default, X-Axis title is set to Off for the Line and Stacked Column Chart. But you can enable it by toggling Title to On. Let me change the Title Color to Green, Font style to Georgia, and Font Size to 20.
Format Y-Axis of a Power BI Line and Stacked Column Chart
As you can see, we changed the Y-Axis labels Color to Brown, font style to Candara, Text Size to 14, and display units to thousands.
By default, Line and Stacked Column Chart Y-Axis title is set to Off, but you can enable it by toggling Title to On. Let me change the Title Color to Green, Text Size to 24, and Font family Georgia.
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.
As you can see from the above screenshot, there is an option called show secondary axis under the Y-Axis. By enabling this you can display the secondary Y-Axis as well.
Format Power BI Line and Stacked Column Chart Data Colors
By default, Line and Stacked Column Chart will use the default colors to fill the stacked columns and lines. Let me change them for the demonstartion purpose.
Format Data Labels of a Line and Stacked Column Chart in Power BI
Data Labels display the Metric Values (Sales Amount of group, and Profit at each point). As you can see from the below screenshot, we enabled data labels, and changes the color to white.
Format Line and Stacked Column Chart in Power BI Shapes
You can use this section to change the Line Strokes, or marking shapes.
As you can see from the below screenshot, we changed the Stroke Width (Line width) to 4, join type to bevel, and line style to solid.
By enabling Show Markers property, you can display the markers at each point.
First, we changed the marker Shape (joining Point Shape ) as Diamond, Marker size as 7, and marker color as white.
Format Line and Stacked Column Chart in Power BI Plot Area
Using this Plot Area property, you can add custom Images as the Background of the Line and Stacked Column Chart. For the demonstration purpose, we added one image as the Plot Area Background.
Format Power BI Line and Stacked Column Chart Title
As you see, we changed the Font Color to Green, Font Family to Georgia, Text Size to 22, and Title Alignment to center. If you want, you can add the background Color to the title as well.
Format Power BI Line and Stacked Column Chart Background Color, and Borders
You can add Background color to a Line and Stacked Column Chart by toggling Background option to On. For the demonstration purpose, we added sky blue with 25% transparency.
Similarly, you can add Borders to a Line and Stacked Column Chart by toggling Border option from Off to On.
Thank You for Visiting Our Blog