Generic/Multi Data Chart

6 posts, 0 answers
  1. Hariharan
    Hariharan avatar
    5 posts
    Member since:
    Sep 2012

    Posted 03 Sep 2012 Link to this post

    Hi ,
              So I am writing a medical app and have this Measurement entity designed consisting of a measurement value, date , a min and max value ,unit name and the measurement name itself, along with other fields. This is kind of a generic entity that lets users record various measrements that are user defined . So if i want to record temperature, the measurement name will be Temperature, min - 98 and max -110 and unit-Farenheit and the value and datetime being the actual temperature and recorded date.
    I need to be able to plot these measurements on the series area chart , where the chart shows the values for a SINGLE measurement name at any given time. So if i choose temperature,i plot all my temperature readings. The Y Axis will plot the value of the reading, with the axis corresponding to the min and max of that type of reading and the X-Axis has the date. Also i need to filter out the readings based on date-  weekly, monthly ,early etc.....
              I tried looking at couple of examples and implement it.. but m having trouble doing so.

    Please suggest.

    Feel free to revert back to me for more clarification.

    Thank You,
    Harihran
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 04 Sep 2012 Link to this post

    Hi Hariharan,

    Thanks for writing.
    Can you please explain in more detail where exactly are you having trouble? Is it the binding to your data source? Are you having trouble filtering (you can simply use Linq and rebind the chart)? Please clarify what you found confusing or difficult to understand so that we can improve our examples and online documentation.
    I am looking forward to your reply.

    Regards,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Hariharan
    Hariharan avatar
    5 posts
    Member since:
    Sep 2012

    Posted 06 Sep 2012 Link to this post

    Hi Victor,
                   I am having trouble dynamically changing the scale for different time frames(week,month,year) in the X-Axis of my graph  and also the measurement ,especially binding to the min, max values from my entity along the Y-Axis. An example would be for temperature i'd like the y -axis to be marked with a minimum of 90 and max 110 while for blood glucose i'd like it to be between 80 and 300. 

    I have it all worked out to bind the item source and filter by duration, but the scales are not marked right.

    Please suggest,


    Thank You,
    Hariharan

  5. Hariharan
    Hariharan avatar
    5 posts
    Member since:
    Sep 2012

    Posted 12 Sep 2012 Link to this post

    Hi Victor,
                   Any updates on how to dynamically change the Axis for the chart?

    Please suggest.

    Thank You,
    Hariharan
  6. Hariharan
    Hariharan avatar
    5 posts
    Member since:
    Sep 2012

    Posted 13 Sep 2012 Link to this post

    I really need to get this done in the next couple of days... any suggestions/help would be much appreciated. Please let me know if more information,or a sample project is needed.

    Thank You,
    Hariharan
  7. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 14 Sep 2012 Link to this post

    Hi Hariharan,

    In order to dynamically update the time scale of the your horizontal axis you need to use the DateTimeComponent property of the DateTimeCategoricalAxis.
    On the other hand, in order to change the min/max values of the vertical axis, you can simply use Linq to filter your data set so that it is between those min/max values. With the filtered data set, the vertical axis will automatically determine the min/max values.

    Regards,
    Victor
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Back to Top
DevCraft banner