Articles in this section
Category / Section

What is the use of the commonSeriesOptions in Chart?

1 min read

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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied