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

Generic/Multi Data Chart

5 Answers 61 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.
Hariharan
Top achievements
Rank 1
Hariharan asked on 03 Sep 2012, 05:23 PM
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

5 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 04 Sep 2012, 07:26 AM
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.

0
Hariharan
Top achievements
Rank 1
answered on 06 Sep 2012, 04:33 PM
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

0
Hariharan
Top achievements
Rank 1
answered on 12 Sep 2012, 04:37 PM
Hi Victor,
               Any updates on how to dynamically change the Axis for the chart?

Please suggest.

Thank You,
Hariharan
0
Hariharan
Top achievements
Rank 1
answered on 13 Sep 2012, 11:13 AM
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
0
Victor
Telerik team
answered on 14 Sep 2012, 07:46 AM
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.

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