Articles in this section
Category / Section

What are the options available in Chart to place data labels in the accumulation series?

4 mins read

Essential chart supports customizing the placement of labels in the accumulation series by using the LabelPosition property. Pie, doughnut, pyramid, and funnel are the different types of the series. Data labels can be placed inside, outside, and at outside extended positions. Data labels overlapping can be avoided by setting the EnableSmartLabels property to true.

 

Inside

In the inside position, the data labels are placed inside the segments of accumulation series. The following code example illustrates this.

    <ej:Chart ID="container" CanResize="true" runat="server">
        <CommonSeriesOptions Type="Pie" LabelPosition="Inside">
            <Marker>
                <DataLabel Visible="true">
                    <Font Color="white" FontFamily="arial" FontSize="16px"></Font>
                </DataLabel>
            </Marker>
        </CommonSeriesOptions>
    </ej:Chart>

 

The following screenshot displays the data labels placed inside the segments of a pie series.

The data labels placed inside the segments

Figure 1: Data labels placed inside the chart

 

Outside

In the outside position, the data labels are placed outside the segment of the accumulation series. The following code example illustrates this.

    <ej:Chart ID="container" CanResize="true" runat="server">
        <CommonSeriesOptions Type="Pie" LabelPosition="Outside">
            <Marker>
                <DataLabel Visible="true">
                    <Font Color="black" FontFamily="arial" FontSize="16px"></Font>
                </DataLabel>
            </Marker>
        </CommonSeriesOptions>
    </ej:Chart>

 

The following screenshot displays the data labels at the outside position.

The data labels placed outside the segments

Figure 2: Data labels at the outside position

 

Outside extended

In the outside extended position, the data labels are placed outside the segments of the accumulation series. The difference between outside and outside extended placement is that the labels are present at the right and left sides of the chart area in the outside extended position; whereas, in the outside position labels are placed outside with respect to the segments instead of the Chart. The following code example illustrates this.

 

    <ej:Chart ID="container" CanResize="true" runat="server">
        <CommonSeriesOptions Type="Pie" LabelPosition="OutsideExtended">
            <Marker>
                <DataLabel Visible="true">
                    <Font Color="black" FontFamily="arial" FontSize="16px"></Font>
                </DataLabel>
            </Marker>
        </CommonSeriesOptions>
    </ej:Chart>

 

The following screenshot displays the labels at the outside extended position.

The data labels placed outside extended position

Figure 3: Data labels at the outside extended position

 

Sample Link: Pie Chart


Note:

A new version of Essential Studio for ASP.NET is available. Versions prior to the release of Essential Studio 2014, Volume 2 will now be referred to as a classic versions.The new ASP.NET suite is powered by Essential Studio for JavaScript providing client-side rendering of HTML 5-JavaScript controls, offering better performance, and better support for touch interactivity. The new version includes all the features of the old version, so migration is easy.

The Classic controls can be used in existing projects; however, if you are starting a new project, we recommend using the latest version of Essential Studio for ASP.NET. Although Syncfusion will continue to support all Classic Versions, we are happy to assist you in migrating to the newest edition.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below.

You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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