Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Changing line chart expression colour

I have a line chart with some expressions. Now I am trying to change the colour of an expression through its background colour property by assigning a variable which is a colour but it is not working.

For example, I create a variable called "expr1_color" as below:

RGB(153,204,255)

then I assign this variable to the expression background colour property in definition field as below:

expr1_color

but it is not woking: expression colour remains the same in the chart despite I change it and in the legend, color for this expression is not displayed (no color is displayed).

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Use

=$(expr1_color)

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Use

=$(expr1_color)

rubenmarin

Hi Tony, can you try this:

$(expr1_color)

$() = This is called $-expansion, it converts the content before the expression calculation, so

$(expr1_color) --> is converted to --> RGB(153,204,255)