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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
rupaliqlik
Partner - Creator
Partner - Creator

line chart with two colors

Hi Experts,

I have  created one line chart in my application in which i want to show two colors means 1st June to till date(19 June)  green color and for remaining days pink color.Is it possible ? or else please suggest some suggestion .

5 Replies
Clever_Anjos
Employee
Employee

As long as you using Area style isn´t possible.

If you use line Style, use an expression like if(Date#(Date,'DD-MMM-YYYY') < MakeDate(2016,06,19), LightGreen(), LightRed()) as background color

Capturar.PNG

sunny_talwar

Something like this?

Capture.PNG

Anonymous
Not applicable

Hi

You can try something like this in the background properties of the expression in your chart.

=if(match(Name of month,'Apr','May'),green(),yellow())

Clever_Anjos
Employee
Employee

are you using two expressions?

sunny_talwar

Yup