android real time line chart

4 posts, 0 answers
  1. shay
    shay avatar
    2 posts
    Member since:
    Jun 2014

    Posted 09 Sep 2014 Link to this post

    hi, 
    i'm looking for a real time line chart example in android environment.
    controlling axis (x,y), number of points in the graph

    Thanks,
    Shay Hadar
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 11 Sep 2014 Link to this post

    Hi Shay,

    Thanks for writing.
    With the current version of the chart you can create an instance of ObservableCollection<T> and populate it with some data objects. Then you set it as the data source for your series. Once this is set up, all you need to do is to add new data as it comes in. The observable collection notifies the series automatically and the chart updates itself.

    Please have a look at our online help and write again if you need further assistance.

    Regards,
    Victor
    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. DevCraft banner
  4. shay
    shay avatar
    2 posts
    Member since:
    Jun 2014

    Posted 11 Sep 2014 in reply to Victor Link to this post

    hi Victor,

    i tried the DateTimeContinuousAxis sample, without ObservableCollection.
    can you supply code example using DateTimeContinuousAxis  as time line with ObservableCollection.
    thanks,
    Shay
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 11 Sep 2014 Link to this post

    Hi Shay,

    The only difference is that instead of using an ArrayList<T> for the series data, you use ObservableCollection<T>. You can literally use the find and replace tool in your IDE to make the change :).

    Regards,
    Victor
    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.

     
Back to Top
DevCraft banner