SmartLabel binding to DataPoint.IsSelected property

4 posts, 0 answers
  1. Michael
    Michael avatar
    51 posts
    Member since:
    Jan 2012

    Posted 08 Nov 2018 Link to this post

    Hallo!

    Is it possible to bind a SmartLabel to DataPoint.IsSelected property!

    I have a ChartSeries with more than 10.000 DataPoints. When i specify a DataPointTemplate, the performance gets bad!

    I need an implementation like the TrackBallInfoCursor! Can you give me a hint?

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2223 posts

    Posted 13 Nov 2018 Link to this post

    Hi Michael,

    There several tips about boosting the chart's performance, described in the 5 Easy Steps Towards a Fast Chart blog post. The most general is - avoid using PointTemplate. Instead use DefaultVisualStyle. The second major recommendation is, use lightweight render options. But note that the render options won't work if you use PointTemplate.

    About the binding to the IsSelected property, I am not sure what you mean here. Can you please send me some drawings of the expected result? This give me a better idea about your case and I can think of a possible approach. 

    Regards,
    Martin Ivanov
    Progress Telerik
    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. Michael
    Michael avatar
    51 posts
    Member since:
    Jan 2012

    Posted 13 Nov 2018 Link to this post

    Hallo Martin,

    thx for the info about chart performance!

    For the smart labels and the binding to IsSelected property I have found a other solution.

    I use CartesianCustomAnnotation to view my custom smart labels in the chart (green line in picture)

    But if you have a better solution/approach please let me know.

  4. Dinko
    Admin
    Dinko avatar
    938 posts

    Posted 16 Nov 2018 Link to this post

    Hello Michael,

    Thank you for the provided picture.

    Displaying custom elements on the plot area of the chart can be achieve using annotation as you already have used. Using annotations in the right way to display your additional information. 

    Regards,
    Dinko
    Progress Telerik
    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.
Back to Top