## Controlling z-order for different SeriesXY types

**Moderator:** Arction_LasseP

### Controlling z-order for different SeriesXY types

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?

- ArctionPasi
**Posts:**1366**Joined:**Tue Mar 26, 2013 10:57 pm**Location:**Finland

### Re: Controlling z-order for different SeriesXY types

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.

- 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

### Re: Controlling z-order for different SeriesXY types

Just what I needed. Thanks!