This is a migrated thread and some comments may be shown as answers.
Stacked Bar-Chart Problem
1 Answer 44 Views
This is a migrated thread and some comments may be shown as answers.
William Hanafin
Top achievements
Rank 1
William Hanafin asked on 23 Jun 2010, 09:52 PM
Hi There,

I need to use the stacked bar chart in a way that allows me to fill in null values for the Charts Item array (source) to indicate to the chart that there are no items for that stack and that it should not be rendered. I could use Zero's (0) but this will display 0% which my client does not want.

I checked the Telerik chart.itemsource property and it does not accept a nullable double[], so I need to find another way to enter my double array containing a value that tells the chart not to render that stack if that double value in the double[] is zero.

Do you have any ideas on how I can do this?

Best Regards

 Bill

1 Answer, 1 is accepted

Sort by
0
Accepted
Velin
Telerik team
answered on 28 Jun 2010, 05:45 PM
Hi William Hanafin,

Please, check this online example, especially the bar series. You will notice that the series item label uses custom style and a converter is being used to hide the label wherever the value of the data point is zero.

Hope this will help.

Best wishes,
Velin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
William Hanafin
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or