Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
595
How to set Plot Series Z index
posted

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.

Parents
No Data
Reply
  • 27093
    posted

    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.

Children