Articles in this section
Category / Section

What are the rendering modes available for pyramid series in the .NET WebForms Chart?

3 mins read

Essential Chart supports rendering of pyramid series in surface and linear mode by using the property PyramidMode of series.

Linear mode

In Linear Mode, the pyramid series is rendered such that the height of a pyramid segment is proportional to the y value of the point represented by that segment. To render pyramid series in linear mode, you can set the PyramidMode property to Linear.

For example, consider a pyramid series having two points with y values [50, 50], then the pyramid series is rendered such that the height of the two segments are proportional to their y values. In this case, two pyramid segments are drawn such that the height of each segment is 50% of pyramid height. In general, if y values of two points in pyramid series are same, then the height of their pyramid segments are equal in linear mode. Refer to the following code example.

ASP

    <ej:Chart ID="container" runat="server">        
       <Series>
           <ej:Series Type="Pyramid" PyramidMode="Linear">
               <Points>
                   <ej:Points X="1" Y="50"></ej:Points>
                   <ej:Points X="2" Y="50"></ej:Points>
               </Points>
           </ej:Series>
       </Series>
    </ej:Chart>

 

The following screenshot displays the pyramid series with two points having the same y values in linear mode. Since both the points have same y values, the height of two pyramid segments are equal.

The pyramid series with two points having the same y values in linear mode

 

Surface mode

In Surface Mode, the pyramid series is rendered such that the surface area of a pyramid segment is proportional to the y value of the point represented by that segment. To render the pyramid series in surface mode, you can set the PyramidMode property to Surface.

For example, consider a pyramid series having two points in the surface mode with y values [50, 50]. Pyramid series is rendered such that the area of segment is proportional to the y values. In this case, both segments consumes 50% of the total surface area of the pyramid chart. In general, when the y values of two points in pyramid series are equal, then the area of their pyramid segments are equal in surface mode. Refer to the following code example.

ASP

     <ej:Chart ID="container" runat="server">        
       <Series>
           <ej:Series Type="Pyramid" PyramidMode="Surface">
               <Points>
                   <ej:Points X="1" Y="50"></ej:Points>
                   <ej:Points X="2" Y="50"></ej:Points>
               </Points>
           </ej:Series>
       </Series>
    </ej:Chart>

 

The following screenshot displays a pyramid series in surface mode with two points having the same y values.

The pyramid series with two points having the same y values in surface mode

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