Knowledgebase: RenderableSeries API
Changing Z-Order of RenderableSeries
Posted by Admin - on 21 March 2014 11:19 AM

The order that RenderableSeries appear in the SciChartSurface.RenderableSeries collection defines the ZOrder, e.g. series defined earlier in the collection appear at the bottom, and series defined later appear at the top.

The exception to this rule is StackedRenderableSeries, where the ZIndex is reversed. In addition, a selected RenderableSeries (set RenderableSeries.IsSelected = true) is always pushed to the top of the ZOrder.
 
<!-- Example 1: Standard RenderableSeries ZOrder -->
<s:ScichartSurface>
	<s:SciChartSurface.RenderableSeries>
       <s:FastLineRenderableSeries/> 	<!-- Lowest ZIndex -->
		<s:FastLineRenderableSeries/> 
       <s:FastLineRenderableSeries/> 	<!-- Highest ZIndex -->
	</s:SciChartSurface.RenderableSeries>
</s:SciChartSurface>

<!-- Example 2: Selected RenderableSeries ZOrder -->
<!-- The ZOrder is changed to highest for selected series -->
<s:ScichartSurface>
	<s:SciChartSurface.RenderableSeries>
       <s:FastLineRenderableSeries IsSelected="True"/>  <!-- Highest ZIndex -->
		<s:FastLineRenderableSeries/> 					<!-- Lowest ZIndex -->
       <s:FastLineRenderableSeries/> 
	</s:SciChartSurface.RenderableSeries>
</s:SciChartSurface>

<!-- Example 3: Stacked RenderableSeries ZOrder -->
<s:ScichartSurface>
	<SciChart:SciChartSurface.RenderableSeries>
		<SciChart:StackedColumnRenderableSeries/> <!-- Highest ZIndex -->
		<SciChart:StackedColumnRenderableSeries/>
		<SciChart:StackedColumnRenderableSeries/> <!-- Lowest ZIndex -->
	</SciChart:SciChartSurface.RenderableSeries>
</s:SciChartSurface>
 
(1 vote(s))
Helpful
Not helpful

CONTACT US

Not sure where to start? Contact us, we are happy to help!


CONTACT US

SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL. Email: Legal Company Number: 07430048, VAT Number: 101957725