I have 2 series items on a chart, the first being a line with some markers , and the second being a single point that overlaps a point on the first series with a different marker. Is there a way to ensure that the second series always has a higher Z order than the first?
Why this is happening is because say I have a collection of 2 series data items. My program takes the first item and creates 2 series items on the XamDataChart with the first being a scatterline series and the second a scatterseries that is just 1 point(overlaps a point on the first series). Then the 2nd series data item goes through the same process which gives it a higher Z order.
Hello,
I have been looking into your requirement and am not completely sure what you mean. Usually the ZIndex of the XamDataChart’s plot area is determined by the index in the Series collection, meaning that the first Series in the Series collection would have the lowest ZIndex (be at the most behind). From this code:
you get this Z-order:
Please let me know if I can be of any further assistance on the matter.
Hi Petar,
'Usually the ZIndex of the XamDataChart’s plot area is determined by the index in the Series collection, meaning that the first Series in the Series collection would have the lowest ZIndex (be at the most behind).'
That was what I was trying to say in my last paragraph but I should have made it more clear.
Since I only wanted certain series on the chart to have a high Z index I was able to use Canvas.SetZIndex(_chart.Series(index), 1000) and get exactly what I was looking for. I knew about setting Z order for wpf user controls but for some reason I thought something like a series would be different.