Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to set line color in line chart using Macro?

Hi, everybody,

I have a line chart with 10 lines. I want to set each line's color in line chart using Macro not in GUI window? What can I do ?

ps . I don't know which object and property I can use. Where can I get the reference material? Thanks you!

1 Solution

Accepted Solutions
marcohadiyanto
Partner - Specialist
Partner - Specialist

hi, you can put in your expression

A : Background color : RGB(0,0,255) --> A line color will blue

B : Background color RGB(255,0,0) --> B line color will red

View solution in original post

5 Replies
marcohadiyanto
Partner - Specialist
Partner - Specialist

hi,

right click on chart, properties go to tab color, and change there...

if you wanna set color in your expression : go to your expression, set your background color on your expression.

and it's done..

regards,

Marco

Not applicable
Author

thanks for your reply

I want to set certain color for certain line. So I think set color by color tab couldn't solve my question.

pls help me . thanks again.

marcohadiyanto
Partner - Specialist
Partner - Specialist

hi, you can put in your expression

A : Background color : RGB(0,0,255) --> A line color will blue

B : Background color RGB(255,0,0) --> B line color will red

Not applicable
Author

hi

I don't know how to write the expression code Confused

johnw
Champion III
Champion III

Properties -> Expressions -> click on the + next to the expression -> background color -> put something like rgb(255,100,100) in the definition box.