get dataset of line chart under navigation range only at client side

4 posts, 0 answers
  1. Binary
    Binary avatar
    10 posts
    Member since:
    Apr 2015

    Posted 05 Nov 2015 Link to this post

    I have used RadHtmlchart with navigation and plotted the couple of line chart on it. Data set for all the line chart is coming from the server side. Is there way to get all the data set of all the line chart covered under  navigation using the javascript (Client side) so that I can manipulate it put some extra info like Min and Max etc based on the navigation selection area.
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 09 Nov 2015 Link to this post

    Hello Binary,

    You can obtain the current data source through the get_dataSourceJSON() method. After that you can modify it and bind it back to the chart through the set_dataSource() method. You can read more information on this regards here - http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/client-side-programming/overview

    Regards,
    Danail Vasilev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Binary
    Binary avatar
    10 posts
    Member since:
    Apr 2015

    Posted 09 Nov 2015 Link to this post

    Is there way to get the plotted point value only instead of the data source attached to radhtmlchart because I have seen the scenario where data source values are group by radhtmlchart and plotted the points instead of straight plotting the data source value. If I am not wrong in this case plotted point values and data source supplied is not same.
  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 11 Nov 2015 Link to this post

    Hello Binary,

    To get the plotted data for a particular series you can use the code below:

    $find('ChartClientID').get_kendoWidget()._plotArea.series[0].data;

    Regards,
    Danail Vasilev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top