StrokedSeries implementation?

Thread is closed for posting
2 posts, 1 answers
  1. Ryan
    Ryan avatar
    3 posts
    Member since:
    Mar 2011

    Posted 04 Dec 2011 Link to this post

    Looking through the documentation of the Chart Series here:

    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?
  2. Answer
    Todor avatar
    798 posts

    Posted 05 Dec 2011 Link to this post

    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:CategoricalAxis />
            <chart:LinearAxis />
        <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" />

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

    Todor Petrov
    the Telerik team

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

Back to Top