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

How to bind series with a secondary axis?

Platform: jQuery |
Control: ejChart

Essential Chart supports using multiple axes in Chart. By default, the primary X axis and primary Y axis are used as horizontal and vertical axes for a series. You can add additional axes to chart by using the axes collection in chart.

To bind series to an axis, assign axis name for xAxisName or yAxisName property of series. The default value for name property of axis is not defined, hence it is mandatory to provide a name for axis before binding it with series.

Use the xAxisName property for binding a horizontal axis and yAxisName property for binding a vertical axis. When these properties are not assigned any value, primary X axis is considered as the horizontal axis for series and primary Y axis is considered as the vertical axis for series.


    axes: [{
        name: 'Secondary Axis',
        orientation: 'vertical',
        opposedPosition: true
    . . . . . . .
    . . . . . . .
    series: [{
        yAxisName: 'Secondary Axis',
        points: [{ x: 10, y: 20 }, { x: 15, y: 21 }, { x: 20, y: 31 }, { x: 25, y: 27 }, { x: 30, y: 17 }],
        type: 'column'
        . . . . . . .
        . . . . . . . 
    . . . . . .
    . . . . . .

The output of the above code example is similar to the following screenshot.

Series with a secondary axis

Figure 1: Output

JS Playground sample link: Secondary Axis

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