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
    Iliana Nikolova avatar
    2622 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}});

    Iliana Nikolova

    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.

Back to Top