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

SeriesProvider and Series display order

1 Answer 115 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Michal
Top achievements
Rank 1
Iron
Michal asked on 12 May 2020, 08:15 AM

     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

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 15 May 2020, 05:25 AM

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.
Tags
ChartView
Asked by
Michal
Top achievements
Rank 1
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or