Controlling z-order for different SeriesXY types

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
ShawnCG
Posts: 57
Joined: Tue Oct 15, 2013 8:31 pm

Controlling z-order for different SeriesXY types

Post by ShawnCG » Wed Apr 16, 2014 10:42 pm

Is it possible to control the Z-order for different SeriesXY types? Specifically, I have LineCollection series that I would like to render underneath an IntensityGridSeries. Is there a way to control which series type is on top?

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Controlling z-order for different SeriesXY types

Post by ArctionPasi » Thu Apr 17, 2014 11:19 am

The chart renders in the following order (ViewXY chart)

- chart.ChartBackground
- GraphBackground
- Maps
- YAxis grids, all of them

And for each X axis separately, for series bound to it in the following order:
- X axis grid
- PolygonSeries (where Behind = true)
- Bands (where Behind = true)
- ConstantLines (where Behind = true)
- BarSeries
- IntensityGridSeries
- IntensityMeshSeries
- HighLowSeries (+SeriesEventMarkers after each series)
- AreaSeries(+SeriesEventMarkers after each series)
- Persistent rendering layers
- StockSeries (+SeriesEventMarkers after each series)
- LineCollections
- SampleDataSeries (+SeriesEventMarkers after each series)
- PointLineSeries (+SeriesEventMarkers after each series)
- FreeformPointLineSeries (+SeriesEventMarkers after each series)
- ConstantLines (where Behind = false)
- Bands (where Behind = false)
- PolygonSeries (where Behind = false)

After these it returns to common rendering again.

- ChartEventMarkers
- LineSeriesCursors
- X axes
- Y axes
- Annotations
- LegendBox
- Title

You may wonder why the rendering is separated for each X axis. That's because of XAxis.ScrollMode = Sweeping support.

So you can control some objects with Behind property. Making the LineCollections to render before IntensitySeries, use two X axes. Assign the LineCollection to first X axis, and Intensity series to second.
LightningChart Support Team, PT

ShawnCG
Posts: 57
Joined: Tue Oct 15, 2013 8:31 pm

Re: Controlling z-order for different SeriesXY types

Post by ShawnCG » Thu Apr 17, 2014 11:34 pm

Just what I needed. Thanks!
:D

Post Reply