Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
cancel
Showing results for 
Search instead for 
Did you mean: 
narband2778
Creator II
Creator II

Dimension Font colour

Hi guys,

I have a problem can anyone help me in this please.

In the selection pane i have filed "Number" contains values 1 to 10.

I have a bar chart with the same dimension as "Number".

Now if i select a single value from the "Number" filed then in my Bar chart I want to see that particular dimension value(font) in different colour and remaining dimension values should be white or hidden.

Thanks In Advance,

Naresh

9 Replies
jonathandienst

Hi

I assume that you have the bar chart working. If it reduces to a single bar when you select something in Number, then you will need to modify the expression to ignore the selection, using the set expression {<Number=>}, like

sum({<Number=>} value)

Then use the expression background color option (click the + next to the expression to get the option):

Enter an expression like (to highlight the selection in light red):

=if(WildMatch(GetFieldSelections(Number), Number), LightRed())

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
narband2778
Creator II
Creator II

Thanks for your response Jonathan,

To ignore the selection worked well,

The logic which you gave me it is changing the colour of my bar, but i want to change the colour of dimension font to red.

Thanks,

Naresh

jonathandienst

Haven't tried this myself, but I suggest that you click the + sign next to the dimension (on the dimensions tab), and apply the expression to the Text Color option.

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
narband2778
Creator II
Creator II

Thank you Jonathan

narband2778
Creator II
Creator II

no i didnt worked for me.

Let me know if you have any other solution.

thanks in advance.

Naresh

bill_markham

Naresh

Could you post a sample qvw so we can see what the actual issue is.

Best Regards,     Bill

narband2778
Creator II
Creator II

Hi Bill,

can you please click the below link. I posted my application

http://community.qlik.com/thread/98588

thanks,

naresh

cgdonders
Partner
Partner

Hi naresh,

Do you already have a solution?

I think you can set the dimension font properties for each axes on the axes tab. Here you can apply the expression for the font color.

TigerisBack
Champion
Champion

see the attached file app and Image

hope this helps