Forum Discussion
adding X-axis line
i want to add x-axis line in above visual. is it possible to add.
got solution
8 Replies
- rohit1991Super User
Hi JothiG
Options to Add an X-Axis Line:
- 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).
- 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.
- 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.
- Constant Line (Analytics Pane):
- Shahid12523Community 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.
- v-tejramaCommunity 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