Consume temperature data and display in RadChart

Thread is closed for posting
7 posts, 0 answers
  1. Han
    Han avatar
    15 posts
    Member since:
    Mar 2009

    Posted 18 Dec 2009 Link to this post

    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
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 23 Dec 2009 Link to this post

    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.
  3. Han
    Han avatar
    15 posts
    Member since:
    Mar 2009

    Posted 28 Dec 2009 Link to this post

    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
  4. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 29 Dec 2009 Link to this post

    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.
  5. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 30 Dec 2009 Link to this post

    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.
  6. Han
    Han avatar
    15 posts
    Member since:
    Mar 2009

    Posted 30 Dec 2009 Link to this post

    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)?
  7. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 04 Jan 2010 Link to this post

    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.
Back to Top