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.
Unfortunately, activation email could not send to your email. Please try again.

How to bind series with a secondary axis?

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.

JS

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

Figure 1: Output

JS Playground sample link: Secondary Axis

Article ID: Published Date: Last Revised Date: Platform: Control:
4997 05/25/2015 08/11/2015 JavaScript ejChart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.