Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change a the graph colour based on a parameter

Dear all,

I am developing a dashboard that contains information of two companies. For these companies, lets call them company a and b, I have placed two buttons on top of the page (button1 and button2). For now the dashboard has one graph. I would like to change the colour of the graph based on the button I select.

Let say I have the following data

LOAD * INLINE [
Month, Day, Amount
1, 2, 3
2, 1, 4
2, 2, 5
3, 1, 7
3, 2, 11
]
;

And i have two buttons (named button1 and button2) and one graph that simply sums up values in amount. Could anybody tell what I should do to make the graph green when I hit button1 and blue when I hit button 2?

5 Replies
sunny_talwar

Check the attached

Not applicable
Author

Hi Marc

I think that you can use a variable as the color of the chart and then you can change the content of the variable when you click the button.

Best regards,

Marcello

Not applicable
Author

Just like Sunny "The Flash" has done!

sunny_talwar

I think I like the new tag

Not applicable
Author

That's the "T" of your user name...