Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart - Legend Issue

Please find the screenshot,

help1.png

Is there any way to enforce a legend at the last point of primary dimension? I don't want vertical legend. Here I am trying to show 180 data points, and all of them can't be shown as legend, qv manages the frequency of legends.

Thanks.

4 Replies
Not applicable
Author

Hi,

create a textbox within chart using chart props --> Presentation Tab --> Add...

expression is like

=MaxString(MyPrimDim)

To move the little textbox next to the corner hold <ctrl>+<shift> and fetch it with the mouse-cursor

HtH

Roland

Try different sizings of your chart because the scaling and positioning of the text is't always correct.

Not applicable
Author

Thank you for your reply. This alternative solution i can't use, because my chart dimension limi varies with button click, and for 1week data the values comes fine at the end and then it will get overlapped with the customized text. i am looking for inbuilt feature, if any.

Not applicable
Author

Ok,

I know this was (is) a workaround and I will wait with you for another  solution.

Meanwhile try sth similar to this:

=if(GetPossibleCount(MyDim) > 9,MaxString(MyDim), '')

RR

Note

The '' (two single qoutes) as you do not want a '-' (dash) when showing a Null-String.

Not applicable
Author

On button click i set variable value, and this variable is used in the set analysis part of the expression, hence the GetPossibleCount() returns always a statis number, however by tweaking a bit of your expression (used the variable in if condition), i get another alternative.

Thanks for your shedding.