Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

moslem_teymoori
Contributor

How to change the color of different trend in a graph manually?

Hello everybody,
I am going to change the color of each trend(trend number 3,trend number 7, and trend number 14) to my favourite color in the graph below, I do not know whether i should change the sql code or write a script in qlik, if I should write a code in qlik I do not know whether I should add script in the Data part or in the Color part , I mean changing to my favourite color according to the expression, and I do not know how to define the color in script...   I would be thankful if somebody gives a hint,
Thanks
The photo is attached.


1111.jpg

3 Replies
OmarBenSalem
Esteemed Contributor

Re: How to change the color of different trend in a graph manually?

Create a master dimension with this dimension of yours

once created, edit it, and then you can choose the color of each of the values of your dim : 3 , 7 and 14.

Once finished, just drag it on your chart and choose color by dimension

moslem_teymoori
Contributor

Re: How to change the color of different trend in a graph manually?

Thanks for your reply, I added(by drag and drop) the graph to the master items(is this how we create Master Items ?)
and i wanted to edit the master items but i couldn't apply different color,
sorry could you please explain how to create master item for my dimensions ? Thanks

OmarBenSalem
Esteemed Contributor

Re: How to change the color of different trend in a graph manually?

No create a master Dimension not the graph.

reread my message please

Community Browser