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

Consume temperature data and display in RadChart

6 Answers 123 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Han
Top achievements
Rank 1
Han asked on 18 Dec 2009, 10:47 PM
Hi,

I'd like to accomplish the following:
1. Consume temperature data from a reliable source (using web service or whatever method is better?)
2. Display the data in RadChart
I'm new at this so I don't know what's the best way to do this. Any website/tutorial/samples from you would be greatly appreciated.

Thanks,
Han

6 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Dec 2009, 06:20 AM
Hi Zhe,

Generally, almost any example can be considered plotting a temperature. This particular one shows RadChart in a scenario involving temperatures. In addition, you may check this example for details about plotting data against DateTime values. I would also suggest checking our online help  for RadChart.

Kind regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Han
Top achievements
Rank 1
answered on 28 Dec 2009, 04:14 PM
Hi,
Thank you for your suggestions. However, the temperature example you referred to is not what I was looking for. In the example the temperature data were generated by the Random function. I was looking for real, historical temperature data. Do you have any suggestion for that?

Han
0
Schlurk
Top achievements
Rank 2
answered on 29 Dec 2009, 04:07 PM
What I find the easiest to do is to get the data from a query and fill a DataTable with it. From there you can either manually add series to your chart, or just let the databinding do its work. If you follow the suggestions and guidelines in the demos which Ves provided with your historical database it should be able to be applied, just taking the place of the Random data.
0
Dwight
Telerik team
answered on 30 Dec 2009, 03:13 PM
Hi Han,

You can either use Carl's solution, or create a chart series and fill the newly coming data points in.

All the best,
Evtim
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Han
Top achievements
Rank 1
answered on 30 Dec 2009, 08:17 PM
Sorry about the confusion. Let me clarify. I want to know where to get historical temperature data and what's the best way to consume it? (ie. Google, Yahoo, Weather.com, etc)?
0
Schlurk
Top achievements
Rank 2
answered on 04 Jan 2010, 05:38 PM
I am not sure what you might have to use to snag this kind of data from websites. I do know that many sites get their weather information from Weather.com, but I am unsure about the API for which to gather this data. Weather Underground is another site which you can use, but again I'm not sure how you can grab that data.

As for the consumption I believe the best alternative would still be to manage a DataSet object which you can take tables from and apply them as the datasource of the RadChart.
Tags
Chart (Obsolete)
Asked by
Han
Top achievements
Rank 1
Answers by
Ves
Telerik team
Han
Top achievements
Rank 1
Schlurk
Top achievements
Rank 2
Dwight
Telerik team
Share this question
or