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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What is the use of ColumnDefinitions property in ejChart?

Platform: ASP.NET Web Forms |
Control: Chart

Essential Chart supports splitting the chart area into multiple columns by using the ColumnDefinitions property. It has options that allow you to specify the column width and unit to be considered like percentage or pixel, for the specified width of a column.

Horizontal axes can be added to a column using the ColumnIndex property of the axis. By default, all the horizontal axes are present at the column with index 0, that is, the first column. This property is useful in scenarios that need to display multiple series in the chart. It can also be used in combination with the RowDefinitions property to split chart area into multiple rows and columns.

Note that all the series in the chart should be compatible with each other when you are using the ColumnDefinitions property, since incompatible series types are not rendered. For example, column and bar type series are not compatible with each other. When any attempts are made to render incompatible series in different columns, either the column or the bar series will be drawn based on their position in the series collection.


    <ej:Chart ID="container" runat="server">        
           <ej:ColumnDefinitions ColumnWidth="50" Unit="percentage" />
           . . . . . . .
           . . . . . . .
        <PrimaryXAxis ColumnIndex="1"></PrimaryXAxis>
            <ej:Axis RowIndex="0" Name="SecondaryX" Orientation="horizontal"></ej:Axis>
        . . . . . . . .
        . . . . . . . .


The following screenshot displays chart with multiple columns.

The use of ColumnDefinitions property

Figure 1: Output


2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
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.

Up arrow icon

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

Live Chat Icon For mobile