valueAxis range (min & max) based on chart series data

2 posts, 0 answers
  1. Chris
    Chris avatar
    7 posts
    Member since:
    Mar 2014

    Posted 11 Apr 2014 Link to this post

    Quick question: is there a way set the valueAxis min and max based on the series data? For example I want the min to be 25 less than the minimum value present in my data set and I want the max to be 25 more than the maximum value in my data set?

    Thanks in advance.
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2593 posts

    Posted 15 Apr 2014 Link to this post

    Hello Chris,

    In order to achieve the expected result I can suggest setting valueAxis min/max values dynamically via the setOptions() method. As an example:
    //get reference to the chart widget
    var chart = $("#chart").data("kendoChart");
    //set min / max options
    chart.setOptions({valueAxis: {min: 0, max: 400}});

    Regards,
    Iliana Nikolova
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Kendo UI is VS 2017 Ready
Back to Top