Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
dillerja
Contributor II
Contributor II

Legend does not display when only one value in dimension

I have created a simple self-contained test project to demonstrate this issue.

I have a stacked bar chart with 3 dimensions: Customer, Store, and Product.  The following picture shows the chart appearing correctly with a legend shown on Product with a different bar segment color for each product shown on the chart.

LegendAppearing.jpg

However, when I select the customer 'Jane Doe' there is only one Product value to display.  When I do this the Product Legend is empty and I can't tell which product I am looking at because I don't know which product the bar represents.  The below picture shows this, with my annotations added in red to highlight the issue.

LegendEmpty.jpg

What makes this even more strange is if I click on the bar chart's caption to make the chart 'active' then the Legend populates showing that blue represents the product 'Gasoline'.  However, if I then save the QVW file, the legend again goes blank.

Any ideas on what causes this, and know of any workarounds?

Message was edited by: Jack Diller (attached sample app: MissingLegend.qvw)

1 Solution

Accepted Solutions
sunny_talwar

11 Replies
sunny_talwar

Do you have a sample you can share which shows the following behavior?

dillerja
Contributor II
Contributor II
Author

Sunny,

I have a sample app, but I don't see how to attach it to the discussion.  I see how to attach an image, but not a QVW file.  Can you point me in the right direction to do that?

Thanks,
Jack

dillerja
Contributor II
Contributor II
Author

Nevermind, I was able to attach the sample app to the original post.  I had to use a different browser.

sunny_talwar

Try now

Not applicable

Jack,

The legends are used only if there are multiple dimensions, so that its easy to identify which element responds to which dimension.

When there will be just one dimension in the chart, there will be no legend.

Its a basic Qv functionality.

Hope that helps.

Regards,

Swapneel

Not applicable

Basically you just need to make the chart bigger by a bit i guess, cause i tried clicking on it and your legend is actually being hidden below, you just have to align the legend maybe to the right or left side.

Not applicable

Hi Jack,

Simply drag and set your legends using Shift + Ctrl

PradeepReddy
Specialist II
Specialist II

just adjust the legends position using Shift + Ctrl.. it will show you what u are expecting...

HirisH_V7
Master
Master

Hi ,

  • By Using Control+Shift  Move your Legend to Right side of the chart
  • Then Do your selections You can Have a View of legends OR If you want it at bottom only means you should provide some more space for legend to be displayed down there by dragging .

Legend in chart.PNG

PFA,

HTH,

Hirish

HirisH
“Aspire to Inspire before we Expire!”