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

colours in x-axis

Hi All.

is it possible to get different colours for the values of x-axis? I'd want the label 2016 in red, 2015 in blue..

thanks in advance

luca

ScreenHunter_001.jpg

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can use a combi chart and add a second expression: =dual(Year, 0). Set the display option of that expression to Text on Axis only. You can then change the background color of the text by clicking on the + in front of the expression and enter an expression that calculates the color: pick(match(Year,'2016','2015','2014','2013'),red(),blue(),black(),green()). Replace Year with the name of your year dimension. See below for a similar example

comm214248.png


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
agni_gold
Specialist III
Specialist III

I think , it is not possible for dimension ,

But you can make same color for whole dimension. like below.

2016-04-22 19_08_31-QlikView x64 - [C__Users_agnivesh_kumar_Desktop_A.qvw_].jpg

Gysbert_Wassenaar

You can use a combi chart and add a second expression: =dual(Year, 0). Set the display option of that expression to Text on Axis only. You can then change the background color of the text by clicking on the + in front of the expression and enter an expression that calculates the color: pick(match(Year,'2016','2015','2014','2013'),red(),blue(),black(),green()). Replace Year with the name of your year dimension. See below for a similar example

comm214248.png


talk is cheap, supply exceeds demand
agni_gold
Specialist III
Specialist III

In this case we need to do hard coding for that

Not applicable
Author

Agnivesh, Gysbert, many thanks for your reply.

Gysbert, your solution works!

Is it possible to vertically align the text (England, Greater London..)?

luca

Gysbert_Wassenaar

Vertically align? Do you mean rotate the text 90 degrees? That's not possible. But perhaps you can change the orientation of the chart to horizontal bars. You can do that on the Style tab of the properties window.


talk is cheap, supply exceeds demand
Not applicable
Author

thanks..