Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Line chart - Custom Legend order

Hello,

I have a line chart where the legend is in an order which I would want to change.

chart leged.png

If you notice though Stream 2 (orange line) is on the top whereas Stream 1 (blue) is way below.

I want to sort the legend based on the order in which the chart appears

So my legend would be

Stream 2

Stream 3

Stream 6

Stream 5

Stream 4

Stream 1

How do I achieve this ?

Thanks,

13 Replies
Not applicable
Author

Thanks Gysbert. That's a very interesting function. Wonder why it's not in the search result of functions in help system.

Gysbert_Wassenaar

No idea. If I search the help file I can find it just fine.


talk is cheap, supply exceeds demand
Not applicable
Author

Must be user error on my part then.

Thanks

Not applicable
Author

For this,

If you want static change in your legend then you can change order in expression so accordingly that will change order in chart and make color for line.

But for dynamic need to think.