We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change zOrder of chart series dynamically?

The zOrder property is used to arrange the series in series collection before rendering the chart. When two series overlap, the zOrder value determines the series that should appear in front. Series with lowest zOrder value is rendered first by default and series with highest zOrder value is displayed in front of all other series. This is illustrated in the following code example.

 CSHTML

The above code changes the rendering order of the series in chart, second series renders first, then the first series.

The following screenshot illustrates the chart before changing the zOrder of the series.

Figure 1: Chart before changing the zOrder of the series

The following screenshot illustrates the chart after changing zOrder of the series.

Figure 2: Chart after changing the zOrder of the series

Article ID: Published Date: Last Revised Date: Platform: Control:
3276 01/20/2015 01/20/2015 ASP.NET MVC Chart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon