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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
CatsLover
New Member

Formatting axis line in Line chart visualization

Hi,

 

I have to format both the Y axis and X axis of a Line chart so it resembles following design:

CatsLover_0-1678190185548.png

My current solution:

CatsLover_1-1678191489930.png

As one can see, there is no Y axis and the X axis is not black and widened enough.

Does anyone have a solution or an idea of what might fulfill this functionality? If the "rainbow" axis is impossible to recreate, then maybe there is at least some way to make axes black and widened, while keeping gridlines gray? It feels like it is a basic functionality that should be already available in Power Bi Desktop, yet i fail to find it.

2 REPLIES 2
giammariam
Solution Sage
Solution Sage

Hey @CatsLover. If you're interested in pursuing Deneb (well worth the effort IMO) I went ahead and got an implementation in place for this just to show you what's possible. Let me know if this is enough to get you going.

 

gist: https://vega.github.io/editor/#/gist/f9b4258262d1f5cef78be429005e7b9d/spec.json

.pbix: https://github.com/Giammaria/PublicFiles/blob/master/pbi/pbi_community_help/20230308_custom_y_axis_l...

giammariam_1-1678291633392.png

 

 



Madison Giammaria
Proud to be a Super User 😄
LinkedIn

Do you frequently use Deneb to provide insights to your stakeholders? Have you considered sponsoring this free and open source custom visual? More info here!
ppm1
Solution Sage
Solution Sage

This could likely be built with the Deneb custom visual. It's low code and has a learning curve (it's also free and certified), but well worth learning for the flexibility and features you get.

Declarative Visualization in Power BI | Deneb (deneb-viz.github.io)

 

Pat

Microsoft Employee

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.