Articles in this section
Category / Section

How to explode a segment in ASP.NET Web Forms Pie Chart?

1 min read

Pie Charts are circular charts that render Y values as slices in a pie. These slices are rendered in proportion to the sum of all the Y values in the series. You can explode these slices in any of the following ways.

Explode

Pie series supports Explode property that allows segments to lean out when moving the mouse over the segments. Explode option is not applicable to the pyramid and funnel type series.

ASP

     <ej:Chart ID="container" runat="server">
        <Series>
            <ej:Series type="Pie" Explode="true">
                    . . . . . . . . 
            </ej:Series>
        </Series>
         . . . . . . . . .
      </ej:Chart>  

 

In following screenshot, when the mouse hovers over the first segment, that segment explodes. When mouse moves out, the exploded segment returns to its original position.

Figure 1: First segment explodes

Explodeindex

You can also programmatically explode a segment by using the explodeIndex property for accumulation type series (pie, doughnut, pyramid, and funnel series). To explode all the segments in the series, the explodeAll property is enabled.

ASP

      <ej:Chart ID="container" runat="server">
        <Series>
            <ej:Series type="Pie" ExplodeIndex="5">
                   . . . . . . .
            </ej:Series>
        </Series>
         . . . . . . . .
      </ej:Chart> 

 

The following screenshot displays the chart with programmatically exploded 5th segment by using the above code.

Figure 2: Exploded 5th segment

ExplodeOffset

The explodeOffset property is used to specify the distance between the actual center and the starting position of the exploded point.

ASP

    <ej:Chart ID="container" runat="server">
        <Series>
            <ej:Series type="Pie" ExplodeIndex="5" ExplodeOffset="35">
                     . . . . . . .
            </ej:Series>
        </Series>
         . . . . . . . . 
    </ej:Chart>

 

The following screenshot displays the Pie Chart with the 5th index exploded to 35 pixels from the center.

Figure 3: 5th index exploded to 35 pixels from the center


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