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

Extension for custom legend/tricks?

Hi Community,

I currently use qlik sense desktop and i face some real estate issues even putting together a few charts on a page.

Also, as i use 'valuelist' approach in many places (in order to give me custom color options for measures), I do not see a legend option in qlik.

Is there any way where i can use simple text and do a custom color  using extension?

Or any other tips to create a sort of legend?

Thanks,

Sowmya

1 Solution

Accepted Solutions
Colin-Albert

Have you seen the options you have using widgets in Sense v3.0?

Qlik Sense 3.0 - Widget

View solution in original post

8 Replies
harishicon
Partner - Creator
Partner - Creator

can u explain more of your question with the example?

Colin-Albert

Have you seen the options you have using widgets in Sense v3.0?

Qlik Sense 3.0 - Widget

Not applicable
Author

Harish,

I use valuelist to give in custom dimensions and define my measures accordingly. Say i have employee A and Employee B working hours, i use  valuelist('A','B') as dimension and define my measures accordingly.

This helps me define custom colors for the measures(work hours for A and work hours for B) which is not otherwise possible when i need to define my colors by measure and not dimension.

When using this approach i do not see a legend option in qlik sense.

Not applicable
Author

No I haven't. Will look up. Thanks!

Not applicable
Author

Thanks a lot! The widgets are helping me create a custom legend!!

Anonymous
Not applicable
Author

Hi Soumya, It will be really helpful if you can share how you have created the customized legend with extension.

Not applicable
Author

Hi Fariha,

You can watch the video here on how it works.

Qlik Sense 3.0 - Widget

If you are specifically looking for the code - here you go

This is the HTML part

<ul class="legend">

    <li><span class="your legend name"></span> Your legend label here</li>

</ul>

You can do your CSS as you wish. Here's mine

/* basic positioning */

.legend { list-style: none; }

.legend li { float: left; margin-right: 10px; }

.legend span { border: 1px solid #ccc; float: left; width: 12px; height: 12px; margin: 1px; }

/* your colors */

.legend .assets { background-color: rgb(93, 154, 12); }

Once you are done, you should connect this widget to a Qlik dashbiadr and it will begin to appear in the dashboard aftr a refresh

Anonymous
Not applicable
Author

Thank you so much!