Forum Discussion

Bhavyasree24's avatar
Bhavyasree24
Helper I
1 year ago

Padding Option in Line chart labels

Hi Team ,

How can I adjust the X-axis and Y-axis labels in a line chart in Power BI? I want to modify their position, spacing, or formatting for better readability. Are there any built-in settings or workarounds to achieve this? Do we have any alternate for Padding the labels ?

I have added a shape for the X-axis and Y-axis lines. However, when the discount rate reaches 0, the discount rate line overlaps with the X-axis shape, making it difficult to hover over the values. Is there any padding option available to adjust the X-axis values downward to prevent this overlap?

8 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Bhavyasree24 ,

    Pls share the screenshot of what are you looking for exactly.

     

    Regards,

    SK

    • Bhavyasree24's avatar
      Bhavyasree24
      Helper I

      Hi Anonymous Thanks for the reply .I have added in the description .Kinly have a look into it .

    • Bhavyasree24's avatar
      Bhavyasree24
      Helper I

      Hi Anonymous I am attaching screenshot below .I have added a shape for the X-axis and Y-axis lines. However, when the discount rate reaches 0, the discount rate line overlaps with the X-axis shape, making it difficult to hover over the values. Is there any padding option available to adjust the X-axis labels downward to prevent this overlap?

       



  • If you're looking to add padding between axis labels and the axis itself, try these options:

    • Increase Category Width: In bar charts, increasing category width can create space.
    • Add Spaces Manually: For categorical labels, you can add spaces in the data table (e.g., " Product A " instead of "Product A").
    • Use a DAX Measure for Dynamic Labels: You can create a calculated column with extra spaces

     

    Please mark this post as solution if it helps you. Appreciate Kudos.