Image_Graph difficulties

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
senorpuerco
Forum Newbie
Posts: 1
Joined: Fri Oct 09, 2009 12:43 pm

Image_Graph difficulties

Post by senorpuerco »

Does anyone have experience with Image_Graph? I've search tutorials and the documentation but can't figure out a good way to do what I'd like to do. I'm making a graph which charts a user's BMI with intermittent data. For example a patient may have the following:

Date BMI
9/1 30
9/5 29
9/6 29
9/10 31
9/20 28

I want to use the smooth line graph type, but can't figure out a way to make the x-axis display only the applicable dates at the correct distance apart. I have tried filling in every day with a value, for instance even though there is no value for 9/2, I would put in 30. This ruins the idea of the smooth curve, as between 9/1 and 9/5 it should curve smoothly down, not straight over until 9/4 and then quickly down. I have tried only entering the dates I have a value for, but that puts 9/5 the same distance from 9/1 as 9/6. Any ideas?
User avatar
Robert07
Forum Contributor
Posts: 113
Joined: Tue Jun 17, 2008 1:41 pm

Re: Image_Graph difficulties

Post by Robert07 »

I've had several good experiences creating dynamic charts with Open Flash Chart (at http://teethgrinder.co.uk/open-flash-chart-2/), you might want to give that a try.
Post Reply