Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
 john_obrien
		
			john_obrien
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		I am looking for tips or an example on using the CSS style property on measures. 
The latest release (Feb 2019) has a great set of visualization objects, including a Multi KPI object with various format and appearance options.  The CSS style property on measures look a very powerful option.   It  allows pasting a CSS in text box, but I'm not sure how to use that property with the others for that measure and/or the other measures.
Any advice would be greatly appreciated!
 
					
				
		
 jmmayoral3
		
			jmmayoral3
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 Zaga_69
		
			Zaga_69
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi John,
I used this piece of code to modify the background color and another aspects.
However, it does not work to change the font size.
Someone has any idea how to manipulate the font size in a multi KPI?
.qv-object-qlik-multi-kpi, .qv-object-barchart, .qv-object-combochart, .qv-object-linechart, .qv-object-table {
border-radius: 3px;
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.16);
background: white !important;
padding: 1em;
border-radius: .5em;
margin: .5em auto;
height: calc(100% - 1em);
body {
font-size: 90%
}
}
regards,
Edi
 
					
				
		
 jmmayoral3
		
			jmmayoral3
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 Suus
		
			Suus
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Do you know the CSS coding for color based on expression?
 Tyler_Waterfall
		
			Tyler_Waterfall
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Same question for me -- I'd like to color the measure red if the value is greater than zero.
If(Sum(errors)>0,red) for example...
 
					
				
		
 prabhu0505
		
			prabhu0505
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Trying to add responsive with below script but it doesn't work. Did you try anything of this sort? Thanks!
& .label[max-height~="100px"] {
font-size: @labelSize * 0.75;
justify-content: center;
color: blue;
}
& .value[max-height~="100px"] {
font-size: @labelSize * 0.75;
justify-content: center;
color: blue;
}
 josemanuel_mart
		
			josemanuel_mart
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello Tyler.
Have you tried to write an expresion in the "color" box?
Something like this: 
if(Sum(errors)>0, '#FF0000', '#00FF00')
Pay attention to the single quotes in the colors. And I think that colors have to be in hexadecimal format.
Best regards
 
					
				
		
 jmmayoral3
		
			jmmayoral3
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello Tyler.
Have you tried to write an expresion in the "color" box?
Something like this: 
if(Sum(errors)>0, '#FF0000', '#00FF00')
Pay attention to the single quotes in the colors. And I think that colors have to be in hexadecimal format.
Best regards
 patricesalem
		
			patricesalem
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello
Can you tell us where is the color box ?
If I activate the conditional value color, I don't have any field appearing to enter a conditional formula.
I'm running on Qlik Sense sept 19 - is it a bug ?
 fabdulazeez
		
			fabdulazeez
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Conditional Value color are for master measure
