Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_B
Contributor
Contributor

Edit color of one of the lines on bar chart

Hello. 

Is there a way or an expression I can use, to change the color of one of the lines in my bar chart?

I would like the budget line to be green.

I have tried writing an expression, however it doesn't seem to be correct. Usually the whole chart (bars and lines) will turn green once I enter my expression. 

Labels (4)
1 Solution

Accepted Solutions
mikaelsc
Specialist
Specialist

create master items and assign the desired color to the measure. 

or as you're using the combo chart, this can be done in the "more settings" menu: 

 

mikaelsc_1-1657136571724.png

 

mikaelsc_0-1657136550355.png

 

 

View solution in original post

4 Replies
mikaelsc
Specialist
Specialist

create master items and assign the desired color to the measure. 

or as you're using the combo chart, this can be done in the "more settings" menu: 

 

mikaelsc_1-1657136571724.png

 

mikaelsc_0-1657136550355.png

 

 

Ray_Strother
Support
Support

Hello ,

Please review the following links regarding expressions and colorization.
1. Color by expression


https://help.qlik.com/en-US/sense/May2022/Subsystems/Hub/Content/Sense_Hub/Colors/color-by-expressio...


2. Coloring visualizations using expressions - Qlik Sense

https://www.youtube.com/watch?v=u9Z1_QRTG04
Eric_B
Contributor
Contributor
Author

I have reviewed both these, but I didn't see an example to edit a specific line. 

Eric_B
Contributor
Contributor
Author

This worked, I went to the desired measure, clicked add master items and edited the color. I then turned "colors auto" on under the colors and legends tab.

Thanks for your help