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

Customize Smartlabel Style

1 Answer 62 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, 07:16 PM

Hi There,

 

How can I change SmartLabel background > Its by default a Textblock.

How can i change it to label or some other  control?

 

Thankyou,

1 Answer, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 16 Dec 2016, 12:52 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.

In the new chart, you can replace the TextBlock in the labels by specifying a custom DataTemplate and set it to the Template property of the ChartSeriesLabelDefinition. In the data template, you can specify different control than . You can take a look at the Label Definition help article in our documentation.

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.
Tags
Chart
Asked by
Kz
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or