Format Line Chart in Power BI

How to Format Line Chart in Power BI with an example? Formatting a Line Chart includes changing the Line Colors, Title text, Title position, Axis Details, Data labels, background Images, etc.

Please refer to the creation of the Line Chart and the List of Charts articles to understand the Power BI Data Source.

Format Power BI Line Chart

We use the Line Chart we created earlier to demonstrate these formatting options. Please click the Format button to see the list of formatting options available for this Line Chart.

Format Line Chart General Settings

Use this General Section to Change the X and Y position, Width, and height of a Line Chart.

General Section

Format Legend of a Line Chart in Power BI

To display or enable the Legend, select the Line chart Legend region and toggle the option from Off to On. Use the Position drop-down box to change the legend position.

As you can see, we added the Legend Title as Money and Legend Position as Top Center. We also changed the Color to Brick Red, the Font family to Georgia, and the text size to 20.

Format Line Chart Legend

Format X-Axis of a Line Chart in Power BI

The following options are available for you to format the Horizontal axis or X-axis. As you can see from the screenshot below, we changed the Color to Dark Grey, the Font style to Candara, and the Text Size to 12.

Format Line Chart Axis

By default, the 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, the Font style to Georgia, and the Font Size to 20.

Format Y-Axis of a Power BI Line Chart

The following is the list of options available for you to format the Vertical axis or Y-axis. From the screenshot below, you can see we change the Y-Axis label’s Color to Dark Grey, Text Size to 15, and the Font style to Candara.

Let me change the Scale type to Log. From the screenshot below, you can see that it is displaying the Log scale.

By default, the 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, the Title Text Size to 20, and the Font family corbel.

By toggling the Gridlines option from On to Off, you can disable the Line Chart Gridlines.

  • Color: You can change the Gridlines color.
  • Stroke Width: Use this to change the Gridlines width. Here, we changed the width from default 1 to 2 strokes.
  • Line Style: Choose a line style such as Solid, dotted, or dashed.

Format Power BI Line Chart Data Colors

By default, the Line chart will display with default colors. Let me change the Sales Amount Line color to Brick Red and the Total Product Cost color to Green.

Format Data Labels of a Line Chart

Data Labels display the Metric or Value information (Sales Amount at each point) about the Line. You don’t require Data Labels for the Trends, but you have an option.

As you can see from the below screenshot, we enabled it to display the properties.

Format Line Chart in Power BI 10

Format Line Chart in Power BI Shapes

Use this section to change the Line Strokes or joining. As you see below, we changed the Stroke Width (Line width) to 4, the marker Shape (Shape at the joining Point) to Diamond, and the Marker size to 8.

Whatever changes you make in the above step reflect on both Lines. But, you have an option called Customize Series, and if you enable this option, you can customize individual Lines.

Format Line Chart Plot Area

Using this Plot Area section, you can add Images as the Background of a Line Chart. For the demonstration purpose, we added one image as the Plot Area Background.

Format Line Chart Plot per Background Image

Format Power BI Line Chart Title

By toggling the Title option from On to Off, you can disable the title of a Line Chart.

As you can see from the below screenshot, we changed the Title Text to Sale Amount and Total Product Cost by State Province Name. Next, we also changed the Font Color to Green, Font Family to Georgia, Font Size to 20, and the Title Alignment to center. You can add the background Color to the title if you want.

Format Line Chart in Power BI 14

Format Background Color, and Border of a Line Chart

You can add the Background color to a Line Chart by toggling the Background option to On. You can add Borders to a Line Chart by toggling the Border option from Off to On.