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

Customize Smartlabel Style based on label value

3 Answers 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kz
Top achievements
Rank 1
Kz asked on 13 Dec 2016, 09:22 PM

Hi There,

 

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

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 16 Dec 2016, 01:28 PM
Hi ,

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.

Regards,
Dinko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Kz
Top achievements
Rank 1
answered on 16 Dec 2016, 05:10 PM
RadCartesianChart
0
Kz
Top achievements
Rank 1
answered on 16 Dec 2016, 05:10 PM
RadCartesianChart
Tags
Chart
Asked by
Kz
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Kz
Top achievements
Rank 1
Share this question
or