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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Nigel99
Frequent Visitor

How to align x axis label of 2 charts

I created 2 charts ( 1 is line chart and another one is line and stacked column chart) and would like to put them on top of each other. They are sharing same x axis label which is categorical variable. How would I manage to accomplish? The x axis label of line chart seem to be offset a bit.

1 ACCEPTED SOLUTION

Ok, then my previous answer was right, 
Different graph types have different proportions .....

Excel is much more flexible, you can modify almost every pixel of the graphs, but Power BI is unfortunately not there yet...

So check other options to reach the desired goal, 
back to the beginning of the discussion for boxplot, you can use error bars.

https://www.youtube.com/watch?v=u6JVQKj5ijU

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

9 REPLIES 9
Nigel99
Frequent Visitor

Nigel99_0-1708825009643.png

I would replicate the doubt using excel charts. I am trying to stack the line chart (front) and bar chart (back) of same width and height on Power BI. The x axis label seem to be switched i.e. "John" of line chart is not align with "John" of bar chart. I was expecting to see they are overlapping on each other. 

Ok, then my previous answer was right, 
Different graph types have different proportions .....

Excel is much more flexible, you can modify almost every pixel of the graphs, but Power BI is unfortunately not there yet...

So check other options to reach the desired goal, 
back to the beginning of the discussion for boxplot, you can use error bars.

https://www.youtube.com/watch?v=u6JVQKj5ijU

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @Nigel99 
Can you show please  what are you trying to do?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

My apology for not able to sharing due to confidentiality. That being said, I was trying to place one chart (with transparent background) on top of another. My intention is to achieve boxplot. 

1. Line chart - display all data point including outliers

2. Line chart and stacked column chart - display Q1, Q2, Q3 etc

 

Both charts are sharing same categorical variable on x-axis. Upon combining, one of chart x axis label seem to shift, making both xaxis label not align.

Hi @Nigel99 

Not sure I understood the description correctly, but I'll try to guess 🙂

If the intention is to arrange proportions in 2 different types of graphs (line chart and combo chart it is not the same graph )that will be 100% identical, regardless of the distance between bars/points on the graph, we do not have any customization options.

Regarding box plots, try to see if the attached video link can help:

https://www.youtube.com/watch?v=u6JVQKj5ijU

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Not identical though. The label is the same; the top one is not aligning with the one beneath.

The label doesn't matter this is a "proportions" question...
Different graph types have different proportions .....

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Ohh I see...Meaning to say, no customisation setting to sort this out.?

Maybe I still didn't understand what you were trying to do.

Are you trying to sort the axes in the same order, or is there a problem where the same point doesn't appear exactly below the other in the two graphs?
It is very difficult to talk about and assist with visual topics based on words alone... I recommend again preparing a small example of what you are trying to accomplish. This will make it much easier for those who are trying to help.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.