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

Pie Chart is not displayed for zero valued data

1 Answer 300 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
RAVINDRA
Top achievements
Rank 1
RAVINDRA asked on 07 Jul 2011, 09:38 AM
Hi


I am creating a Pie Chart using Telrik Reporting Controls. When the data is zero for all the items in the datasource, then the chart is not being displayed. In such case, is it possible to display a message for the pie chart "All the values are zero". Please find the attached report for furthur information.


Thanks in advance
Ravindra

1 Answer, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 07 Jul 2011, 09:50 AM
Hi Ravindra,

You should manually check your datasource if all the data is 0 and in such case remove the series from the chart. When you do that, the chart would automatically display the text in the chart.PlotArea.EmptySeriesMessage.TextBlock.Text property. The default one is "There is no or empty series".

All the best,
Steve
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

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