Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Stars
Creator
Creator

Color of Lines on a Trend Chart

Hi -

I'm trying to color code my trend charts so that the line for minimum is red, average is blue, maximum is green, and company is black.  I searched through the boards, but didn't find an answer that works for me.  A lot of the posts are from 2014 or suggest making each line on the graph a measure in master items and then assigning a color.  I would rather not use that method because I have about 50 unique graphs to make and I don't want to have to create four measures for each of the 50 graphs.  Is there any other way to do this?  The expressions for my measures are very long and it was getting messy trying to color by expression with four colors and very long equations.  Just wanted to see if there's any easy way I'm missing.  I did try creating my own theme, but it didn't seem to impact trend charts.

Thanks.

 

1 Solution

Accepted Solutions
Stars
Creator
Creator
Author

I got it!  You CAN change the colors for the line charts in your theme!  You just have to be smart enough to exit out of Qlik so it reapplies everything.  I changed my theme and assumed it updated, but nothing happened last night.  My computer crashed and restarted and now my colors are right!

 

In the JSON file for your them, change the UI panel information:

"ui": [
{
"colors": [
"#999999",  - any colors you want
"#000000"
],

View solution in original post

2 Replies
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi 

Can u please share a sample qvf  so anyone can try and give the solution ASAP

Thanks

Thanks and Regards
Kashyap.R
Stars
Creator
Creator
Author

I got it!  You CAN change the colors for the line charts in your theme!  You just have to be smart enough to exit out of Qlik so it reapplies everything.  I changed my theme and assumed it updated, but nothing happened last night.  My computer crashed and restarted and now my colors are right!

 

In the JSON file for your them, change the UI panel information:

"ui": [
{
"colors": [
"#999999",  - any colors you want
"#000000"
],