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

StrokedSeries implementation?

1 Answer 64 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ryan
Top achievements
Rank 1
Ryan asked on 05 Dec 2011, 01:32 AM
Looking through the documentation of the Chart Series here:

http://www.telerik.com/help/windows-phone/radchart-series-chartseries.html

I notice a mention of 'StrokedSeries' which exposes the 'DashArray' property. I would like to implement this in my chart, but I am unable to find a proper example of this.

Has anyone found an example?

1 Answer, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 05 Dec 2011, 01:42 PM
Hi Ryan,

Thank you for your interest in RadChart.

As it is said in the article that you mentioned, StrokedSeries is an abstract class, which provides the properties Stroke, StrokeThickness and DashArray. In order to use them you should create an instance of series which inherit the StrokedSeries, namely AreaSeries or LineSeries.

More information on how to use them is available here:

    -    AreaSeries
    -    LineSeries

To reproduce the example from the screen shot, you can use the following code:
<chart:RadCartesianChart>
 
    <chart:RadCartesianChart.HorizontalAxis>
        <chart:CategoricalAxis />
    </chart:RadCartesianChart.HorizontalAxis>
 
    <chart:RadCartesianChart.VerticalAxis>
        <chart:LinearAxis />
    </chart:RadCartesianChart.VerticalAxis>
 
    <chart:LineSeries StrokeThickness="4" Stroke="Green" DashArray="5 10 16">
        <chartEngine:CategoricalDataPoint Value="20" />
        <chartEngine:CategoricalDataPoint Value="40" />
        <chartEngine:CategoricalDataPoint Value="35" />
        <chartEngine:CategoricalDataPoint Value="40" />
        <chartEngine:CategoricalDataPoint Value="30" />
        <chartEngine:CategoricalDataPoint Value="50" />
    </chart:LineSeries>
 
</chart:RadCartesianChart>

I hope this information is useful. Let me know if I can assist you further.

Greetings,
Todor Petrov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Ryan
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or