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

Custom RadScatterSparkline style

1 Answer 53 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Stéphane
Top achievements
Rank 1
Stéphane asked on 15 Oct 2014, 12:06 PM
Hi,

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!

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 17 Oct 2014, 08:12 AM
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.

References:
QSF demos
SDK samples
Online documentation

Regards,
Petar Marchev
Telerik
 

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.

 
Tags
Sparkline
Asked by
Stéphane
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or