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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
l_ke
Frequent Visitor

Line chart does not show all legend values

Hi, I created a line chart with 15 legend values, it shows only 12 legend values when expand all levels of hirarchy. I tested it with a bar chart instead and it works well. Anyone also face this issue? Do I need further actions on settings? Any helps are appreciated.

 

(Edit: Line chart can show only 2000-2011 while bar chart can show 2000-2015)

 

(Edit 2: Found it happens when x-axis is continuous, if categorical it works fine)

 

(here please find the data)

 

Line ChartLine ChartBar ChartBar Chart

1 ACCEPTED SOLUTION
l_ke
Frequent Visitor

This problem is solved by selecting "show items with no data" in legend card.

(However another problem occurs - the tooltip does not show all legend values..)

View solution in original post

3 REPLIES 3
l_ke
Frequent Visitor

This problem is solved by selecting "show items with no data" in legend card.

(However another problem occurs - the tooltip does not show all legend values..)

RJ251997
Helper I
Helper I

Hi @l_ke ,

You can follow this steps.

         Go to the Format pane.

Select Detail labels function.

Go to Label position.

Change from Outside to Inside.

Switch on the Overflow Text function.

 

Thank & Regards

ROHIT JAISWAL

l_ke
Frequent Visitor

Hi, I'm sorry I don't get it. I can't find Detail labels function. I can find Data label though but can't find Overflow Text function. My Power BI desktop version is Apr 2021. 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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