Is there any way where I can customize CharLabelSettings i.e based on label value .We would like to change 1) Control template or customize data template.
its just like if value is >10 then show smartlabels fround ground in red and show label in ellipse .
3 Answers, 1 is accepted
answered on 16 Dec 2016, 01:28 PM
Let first start you mark this thread for the old RadChart control. For new development, we urge you not to use the old RadChart but use the new RadChartView. The new chart view is actually a set of controls - RadCartesianChart, RadPieChart, RadPolarChart, ChartDataSource. It is much faster, very flexible, resolves almost all limitations the old control had and is pretty easy to set up. You can read about the differences between the components in the RadChart vs. RadChartView help article.
An approach which you can try is to create different DataTemplate for the different cases. Then you can create a class which derives from DataTemplateSelector and override the SelectTemplate method where you can check the incoming data and set the desired data template. You can specify the custom class to the TemplateSelector property of the ChartSeriesLabelDefinition.