Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jellekuin
Contributor
Contributor

How to theme KPI title's (of 1st and 2nd expression)?

I use 5 KPI objects in a mashup with a dark background. Default color of KPI measure title is grey.

I'm looking for a possibility to theme the color of the 1st and 2nd expression titles of KPI object.

I tried the following code from help but it doesn't work:

"kpi": { "backgroundColor": "@light", "title": { "main": { "color": "@default", "fontSize": "@font-normal" }, "subTitle": { "color": "@default", "fontSize": "@font-normal" }, "footer": { "color": "@default", "fontSize": "@font-normal", "backgroundColor": "@light" } } }

https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/Extensions/Content/CustomThemes/cust...

Does anybody have a solution? Thanks.

1 Reply
jheasley
Luminary Alumni
Luminary Alumni

add the following to your HTML styling:

/*
* this controls the second kpi measure label
*/
.qv-object .sn-kpi-title {
color: #ffffff;
}