Customize Smartlabel Style based on label value

4 posts, 0 answers
  1. Kz
    Kz avatar
    32 posts
    Member since:
    Oct 2012

    Posted 13 Dec 2016 Link to this post

    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 .

     

     

  2. Dinko
    Admin
    Dinko avatar
    257 posts

    Posted 16 Dec 2016 Link to this post

    Hi sri,

    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.
  3. Kz
    Kz avatar
    32 posts
    Member since:
    Oct 2012

    Posted 16 Dec 2016 in reply to Dinko Link to this post

    RadCartesianChart
  4. Kz
    Kz avatar
    32 posts
    Member since:
    Oct 2012

    Posted 16 Dec 2016 in reply to Dinko Link to this post

    RadCartesianChart
Back to Top