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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to set same legend for multiple charts...

Hi i have 4 types of charts...

I Want to set a single legend for 4 types of charts..(legend fields are common for 4 types of charts)

can u help me...

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     The easiest way is you hide the legend from all charts and then create textboxes which shows the legend colors and another textboxes which shows text.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

8 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     The easiest way is you hide the legend from all charts and then create textboxes which shows the legend colors and another textboxes which shows text.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

legend.png

Hide legend,take image & put in one text object..

regards-bika

Not applicable
Author

thanks to reply..

but i click legend color..,i want it will affect all the charts..

wat can i do..

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     What do you mean by affect?

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Take straight table

Dimension : DimensionName

Expression : ' '

  Background colour =

pick(match(DimensionName,
'a,'b','c', 'd'),

        
rgb(27,125,156),

        
rgb(166,216,227),

        
rgb(187,216,84),

        
rgb(196,178,214)

         )

uncheck in general tab "Readonly"

Hide Caption

It will work as legend

legend1.png

Hope it will help u..

regards-bika

Not applicable
Author

if i click the legend color...
it will change charts color also.

affect means affect the chart legend color

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     If you have 4 different expressions then you can give an action on the click of the legend (Textbox) to set an variable and then use that variable to show and hide the expression using the conditional show.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

If you dont want the chart color change when clicking on a legend you could check the Persistent Colors box.

Skärmklipp.JPG