SeriesProvider and Series display order

2 posts, 0 answers
  1. Michal
    Michal avatar
    1 posts
    Member since:
    May 2020

    Posted 12 May 2020 Link to this post

         Hi

    In my chart I created ChartSeriesProvider and few ScatterPointSeries. 

    For the ScatterPointSeries I can set the display ordering using Zindex or using default order But the ChartSeriesProvider created on top of other series.

    How can I set the order of ChartSeriesProvider to most down?

     

    Thanks

    Michal

  2. Dinko
    Admin
    Dinko avatar
    1220 posts

    Posted 15 May 2020 Link to this post

    Hi Michal,

    What you can try is to target the series generated by the ChartSeriesProvider. For example, you can set it through the Style property.

    <telerik:CategoricalSeriesDescriptor CategoryPath="Category" 
                                                            ValuePath="Value" 
                                                            ItemsSourcePath="Items"  
                                                            CollectionIndex="2"> 
                        <telerik:CategoricalSeriesDescriptor.Style> 
                            <Style TargetType="telerik:LineSeries"> 
                                <Setter Property="StrokeThickness" Value="4" /> 
                                <Setter Property="ZIndex" Value="0" /> 
                            </Style> 
                        </telerik:CategoricalSeriesDescriptor.Style> 
                    </telerik:CategoricalSeriesDescriptor> 

    Another approach is to subscribe to the SeriesCreated event of the ChartSeriesProvider. In the event handler, you can get the currently created series from the Series property from the event arguments and set the ZIndex property.

    I hope this information is useful.

    Regards,
    Dinko
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top