Requirement:
How to dynamically change the position of the X-Axis or Y-Axis in an HTML5 Chart. For example, for a spline chart, the requirement is to change the Y-Axis position based on new data added in the database.
Solution:
You can use the 'yAxis.offset' which moves the y-axis horizontally away or towards the plot area. You would have to use an expression for the chart properties. Please see attached screenshot:
This is the jsfiddle example:
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now