This is a migrated thread and some comments may be shown as answers.

Hide "0" labels from a Staked Bar Chart

1 Answer 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 13 May 2013, 07:24 AM
Hi,

I have a chart that looks like this (see attached image).

How can I hide the "0" labels ?

I checked this: http://www.telerik.com/community/forums/reporting/telerik-reporting/how-do-you-hide-stacked-bar-items-which-are-zero-or-null.aspx

isn't any other way ? Like just iterate though the items that are databound and set Visible = false for labels ?

Many thanks,

Alex


 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 16 May 2013, 06:57 AM
Hello Alex,

In case this is the new Graph item, you can use an expression to evaluate the currently displayed for the series DataPointLabel and change the text, e.g. the following expression using I function:
=IIf(Fields.ColDataPointLabel=0,'', Fields.ColDataPointLabel)

If this is the old Chart item, you can manually add items to the series and determine whether to show the items Label.TextBlock as described in the mentioned by you forum thread. We recommend switching to the Graph item, as the Chart item is obsolete.

I hope this helps.

Regards,
Stef
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or