Forum Discussion

JothiG's avatar
JothiG
Helper III
11 months ago
Solved

adding X-axis line

i want to add x-axis line in above visual. is it possible to add.

8 Replies

  • Hi JothiG 

    Options to Add an X-Axis Line:

    1. Constant Line (Analytics Pane):
      • Go to the Analytics pane of your chart.
      • Under X-Axis Constant Line, choose Add line.
      • Give it a value (for example, 0 if you want a baseline).
      • You can format it (color, thickness, dashed/solid).
    2. Use Reference Line (Y-Axis Alternative):
      • If your requirement is more like a baseline across the chart, you can also add a constant line on Y-axis at 0.
      • This creates a horizontal baseline that works as an X-axis line.
    3. Custom Workaround (Shape or Line Visual):
      • If the analytics option doesn’t fully match your need, insert a Line shape from the ribbon.
      • Place and align it exactly where you want to simulate the axis line.

    In most cases, the Analytics pane >> Constant Line option will solve your need.

  • Shahid12523's avatar
    Shahid12523
    Community Champion

    Steps to Add X-axis Line:

    Select the Visual → Click on your chart.

    In the Visualizations pane, go to Format (paint roller icon).

    Expand X-axis.

    Look for Gridlines / Axis line option:

    Turn Axis line = On.

    You can adjust color and thickness of the line.

    This will add a horizontal baseline along the X-axis.

  • Hello JothiG 

     

    To add X-axis line by using 'Reference line', you may set it up with configurations as in below pictures.   

        

     

     

  • v-tejrama's avatar
    v-tejrama
    Community Support

    Hi  JothiG ,

    Thanks for raising this. At present Power BI does not provide a direct option to draw a full X-axis line across a column chart. The “Axis line” setting in the Format pane will only control the tick line below the labels, and the Analytics pane allows constant lines only along the Y-axis. If you are looking for a proper horizontal baseline at the X-axis, the only available workaround is to manually add a line shape and align it with the bottom of the chart. I agree it would be useful to have this feature natively, so you may also consider submitting an idea in the Power BI Ideas forum for product improvement.

    please find the attached PBIX and Screenshort file for your reference.

     

    Best Regards,

    Tejaswi.

    Community Support

     

    • v-tejrama's avatar
      v-tejrama
      Community Support

      Hi JothiG ,

       

      I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

       

      Thank you,

      Tejaswi.

       

      • v-tejrama's avatar
        v-tejrama
        Community Support

        Hi  JothiG ,

         

        I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

        Thank you,

        Tejaswi.