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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
saurav5246
Partner - Contributor III
Partner - Contributor III

Data Label Color change as per condition

Hi All,

I want to change the Data label color in Bar Chart as per condition.

I tried but label color as per expression is not available in Appearance-->styling---->Chart--->Label Color.

Requirement: Value greater than 500 should be green colored else red colored.

Thanks in advance.

 

saurav5246_0-1738255080938.png

 

Labels (1)
4 Replies
theoat
Partner - Specialist
Partner - Specialist

Hey,

I don't think it's possible currently.

Enjoy your Qlik.

Kind regards,
Théo ATRAGIE.

MatheusC
Specialist II
Specialist II

Hi @saurav5246 
mentioned @theoat , this is not possible with what we currently have in chart customization in labels only.

That said, with some modifications you can try to find a workaround.

I will leave an example using the information provided:

In this example, I use the combination chart:

With 1 dimension and two measures, then:



Year
1 Measure – Sum (value) – As bar
2 Measure - if(Sum(Value)<500,Value,'') – As a marker on lines
This second measurement is just to indicate your value which is below 500 and then color

MatheusC_3-1738270071452.png

 

 



***************************************************************************************************

In the marker properties - Leave it as transparent

MatheusC_0-1738269851581.png

 

And then a color for your measurement label

MatheusC_4-1738270388972.png

 



Maybe you can try something with an extension, but I looked for a native solution and saw if it can help you.

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
saurav5246
Partner - Contributor III
Partner - Contributor III
Author

thanks @MatheusC . Can you share its qvf file?

MatheusC
Specialist II
Specialist II

Yes, see the qvf

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!