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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What is the use of the commonSeriesOptions in Chart?

Platform: ASP.NET Web Forms |
Control: Chart |
Published Date: May 26, 2015 |
Last Revised Date: July 2, 2019

The CommonSeriesOptions property provides options to customize marker, data label and other properties of all the series in Chart. Except for the Points property, you can customize all the other properties in the series using the CommonSeriesOptions property.

For example, changing marker shape in CommonSeriesOptions changes the marker shape of all the series. To customize marker and other properties for a specific series, values should be provided to the properties of that specific series in the series collection. In general, the values provided to the series in the series collection override the values provided through CommonSeriesOptions.

ASP

         <ej:Chart ID="Chart1" runat="server">            
            <CommonSeriesOptions>
                <Marker Visible="true"></Marker>
            </CommonSeriesOptions>
            <Series>
                <ej:Series>
                    <Points>
                        <ej:Points x="1" y="35"> </ej:Points>
                        <ej:Points x="2" y="26"></ej:Points>
                        <ej:Points x="3" y="51"></ej:Points>
                        <ej:Points x="4" y="69"></ej:Points>
                    </Points>
                    <Marker Fill="blue">
                        <Size Width="10" Height="10" />
                    </Marker>
                </ej:Series>
                <ej:Series>
                    <Points>
                        <ej:Points x="1" y="72"> </ej:Points>
                        <ej:Points x="2" y="29"></ej:Points>
                        <ej:Points x="3" y="48"></ej:Points>
                        <ej:Points x="4" y="39"></ej:Points>
                    </Points>
                </ej:Series>
                <ej:Series>
                    <Points>
                        <ej:Points x="1" y="52"> </ej:Points>
                        <ej:Points x="2" y="58"></ej:Points>
                        <ej:Points x="3" y="32"></ej:Points>
                        <ej:Points x="4" y="11"></ej:Points>
                    </Points>
                </ej:Series>
            </Series>
         </ej:Chart>

The following screenshot displays a chart with markers enabled using CommonSeriesOptions and marker fill color customized specifically for the first series in the Series collection.

Chart with markers enabled using CommonSeriesOptions

Figure 1: Output

 

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

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