This is a migrated thread and some comments may be shown as answers.

android real time line chart

3 Answers 123 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
shay
Top achievements
Rank 1
shay asked on 09 Sep 2014, 06:01 AM
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

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 11 Sep 2014, 08:09 AM
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.

 
0
shay
Top achievements
Rank 1
answered on 11 Sep 2014, 08:41 AM
hi Victor,

i tried the DateTimeContinuousAxis sample, without ObservableCollection.
can you supply code example using DateTimeContinuousAxis  as time line with ObservableCollection.
thanks,
Shay
0
Victor
Telerik team
answered on 11 Sep 2014, 12:11 PM
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.

 
Tags
Chart
Asked by
shay
Top achievements
Rank 1
Answers by
Victor
Telerik team
shay
Top achievements
Rank 1
Share this question
or