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.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

What is the use of rowDefinitions property in the ejChart?

Platform: jQuery |
Control: ejChart

Essential Chart supports splitting the chart area into multiple rows by using the rowDefinitions property. There are options to specify the row height, unit to consider (percentage or pixel) for the specified row height, color and width for the line that indicates where the row starts in the chart area.

Vertical axes can be added to a row by using the rowIndex property of the axis. By default, all the vertical axes are present at the row with index 0 (first row). This property is useful for displaying multiple series in the Chart.

Note that all the series in the Chart should be compatible with one other when using the rowDefinitions property; incompatible series types are not rendered. For example, column and bar type series are not compatible. When attempts are made to render incompatible series in different rows, either the column or bar series are drawn based on their position in the series collection.


    //Splits chart area into multiple rows.
    rowDefinitions: [{
        //Specifies height for the row.
        rowHeight: 50,
        //Specifies whether height should be considered in percentage.
        unit: 'percentage',
        lineColor: 'green',
        lineWidth: 2
    . . . . . .
    . . . . . .
    primaryYAxis: {
        //Places axis at the second row.
        rowIndex: 1
    axes: [{
        orientation: 'vertical',
        name: 'SecondaryY',
        //Places axis at the first row. First row starts from the bottom of the chart area.
        rowIndex: 0
    . . . . . . . 
    . . . . . . .


The following screenshot displays the Chart with multiple rows.

Use of row definitions

JS Playground sample link: Row definitions

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