You can add an additional ChartSeries with Name="Total" and the same number of ChartSeriesItems as the other ChartSeries, but all of these items should have YValue=0
. This ChartSeries will be used to display an entry in the datatable and possibly some labels in the plotarea. Set its DefaultLabelValue
and you will have the required DataTable entry.
Now, the labels of this "total" series will overlap with other stackedbar labels, so you can set the IntelligentLabelsEnabled
property to true
. As long as the chart is not overloaded with items this will work fine and the total will appear above the other values. However, when more labels are displayed this might not yield the best expected result, so I would suggest hiding the total labels, the values will remain visible in the datatable.
Hope this helps.
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items