Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

paulyeo11
Valued Contributor II

chart with multiple line , how to make it multiple color ?

Hi All

I have a chart with multiple line . the color of each line same color , how to make it diff color ?

i will enclosed my sample QV doc in my next post.

Paul

1 Solution

Accepted Solutions
jyothish8807
Honored Contributor II

Re: chart with multiple line , how to make it multiple color ?

Hi Paul,

Legends are present in your chart, yo need to press shift+ctrl and drag the legend bar a little up.

Regards

KC

Best Regards,
KC
17 Replies
ajsjoshua
Contributor III

Re: chart with multiple line , how to make it multiple color ?

Hi paul,

Prop->colors->

change the colors in that.

Regards,

Joshua

kkkumar82
Valued Contributor III

Re: chart with multiple line , how to make it multiple color ?

Hi,

goto the chart properties -> colors tab -> multicolored.

I have seen your graph, there is only one expression in it , you cannot different lines.

Thanks

Kiran

paulyeo11
Valued Contributor II

Re: chart with multiple line , how to make it multiple color ?

Hi Krian

Thank you for your sharing . I am

Not able to tick on multiple Color box as it is disable.

Yes I have only one expression , but the GROUP field have 10 line . I place this field as diamendion .

Any work around ?

Paul

Sent from my iPhone

kkkumar82
Valued Contributor III

Re: chart with multiple line , how to make it multiple color ?

Hi Paul,

The second dimension doesn't have any values I think that is the reason it is not showing up values(Lines).

Can you recheck your expression for the second dimension.

Thanks

Kiran Kumar

jyothish8807
Honored Contributor II

Re: chart with multiple line , how to make it multiple color ?

Hi Paul,

I this case you have to write an expression to set the color for each 10 line.

In dimension:

1.click on the + sign of group.

2. If(Group='ABC',rgb(10,1,21),if(Group='BCD',rgb(1,2,3)))

You can try like this.

Regards

KC

Best Regards,
KC
paulyeo11
Valued Contributor II

Re: chart with multiple line , how to make it multiple color ?

Hi Sir

I try your script but the Color never change.

My field name GROUP_CLASS , label = G1 , I insert your example with my field name not working .

Paul

Sent from my iPhone

rajeshforqlikvi
Contributor

Re: chart with multiple line , how to make it multiple color ?

Hi ,

for bar chart left axis is there and for the line chart right axis is there.

do you have any relation between them if yes then it will be easy to write the condition for background color.

Regards

Rajesh Kumar

jyothish8807
Honored Contributor II

Re: chart with multiple line , how to make it multiple color ?

Hi Paul,

Can you share a sample app ? That will be helpful to understand.

Regards

Jyothish KC

Best Regards,
KC
paulyeo11
Valued Contributor II

Re: chart with multiple line , how to make it multiple color ?

Hi KC

I Have enclosed the QV sample file at 2 posting.

Paul

Sent from my iPhone

Community Browser