Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to dynamically change the position of X-Axis or Y-Axis in an HTML5 Chart


    Sarthak Chaudhary
    • Features: Charts Version: v8.0 Product: JasperReports® Server

    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:

    image_186.png.c1c7e6721276952b93e9862c331dc741.png

    This is the jsfiddle example:

     

    http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/yaxis/offset/


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...