Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JothiG
Helper II
Helper II

adding X-axis line

JothiG_0-1756542459281.png

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

1 ACCEPTED SOLUTION

8 REPLIES 8
v-tejrama
Community Support
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.

 

vtejrama_0-1756797605459.png

Best Regards,

Tejaswi.

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.

 

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.

 

got solution 

Hi @JothiG ,

 

I'm glad you found a solution and resloved  the query. Thank you very much for sharing here.

If you have further queries please reach out.

 

Thankyou for connecting with Microsoft Community Forum.

 

MasonMA
Community Champion
Community Champion

Hello @JothiG 

 

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

MasonMA_0-1756566618507.png    MasonMA_1-1756566668336.png

 

 

Shahid12523
Community Champion
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.

Shahed Shaikh
rohit1991
Super User
Super User

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.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.