Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

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

Re: Extension for custom legend/tricks?

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

Qlik Sense 3.0 - Widget

8 Replies
harishicon
New Contributor III

Re: Extension for custom legend/tricks?

can u explain more of your question with the example?

Re: Extension for custom legend/tricks?

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

Qlik Sense 3.0 - Widget

Not applicable

Re: Extension for custom legend/tricks?

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

Re: Extension for custom legend/tricks?

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

Not applicable

Re: Extension for custom legend/tricks?

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

fariha_khan
New Contributor

Re: Extension for custom legend/tricks?

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

Not applicable

Re: Extension for custom legend/tricks?

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

fariha_khan
New Contributor

Re: Extension for custom legend/tricks?

Thank you so much!