Custom RadScatterSparkline style

2 posts, 0 answers
  1. Stéphane
    Stéphane avatar
    1 posts
    Member since:
    Nov 2011

    Posted 15 Oct 2014 Link to this post


    I would like to use sparklines in a gridview. The control closer to my needs seem to be the RadScatterSparkline.
    I need exactly a points chart but I would like to be able to draw one to two additional lines on demand.
    Those line need to be horizontal straight line and reprensent target number or min or max, etc.
    1. I need to add one to two straight lines.
    2. I need to get bigger dots.
    3. I need to get separate color for each dot.

    Here's a picture of what I'm talking about.

    Is it possible to achieve that with a RadScatterSparkline or other controls?

    Thank you for your help!
  2. Petar Marchev
    Petar Marchev avatar
    1029 posts

    Posted 17 Oct 2014 Link to this post

    Hello Stéphane,

    I do not think that the sparklines are the best choice here. You cannot get the horizontal lines and cannot get the color-per-item.

    I suggest you go with the ChartView. You can use a RadCartesianChart and collapsed axes. You can use the DefaultVisualStyle property of the series to set a style that gets the fill from the underlying data item. This way you will get color-per-item. You can use the Annotations property of the chart to add a CartesianGridLineAnnotation for the horizontal lines.

    QSF demos
    SDK samples
    Online documentation

    Petar Marchev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top