smacpettit Posted March 19, 2009 Share Posted March 19, 2009 Morning, I have been asked by my company to make a PHP calculator that shows the results in a chart/graph view, is this at all possible? I have had a look around the net and all I can find is if I want to use information from a database or XML file. Whereas I want one that creates one of the fly, I am not after a calculator in the sense of a casio styled one, just one that takes the users entered information (like a mortgage quote) and will show them the interest etc rate over X years in a graph format. Anyone know any tutorials out there that can help me? All help is much appreciated in advance Quote Link to comment https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/ Share on other sites More sharing options...
kindoman Posted March 19, 2009 Share Posted March 19, 2009 As far as I know you have to put Flash or Java into the mix. http://www.jscharts.com/ http://www.maani.us/charts/index.php Quote Link to comment https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/#findComment-788377 Share on other sites More sharing options...
kickstart Posted March 19, 2009 Share Posted March 19, 2009 Hi You can do it manually. A graph is just an image and php is quite capable of creating images on the fly. I did knock up a basic php class for generating graphs, where you just pass the values you want to plot. I can let you have that if it would help (it is not finished but does work). All the best Keith Quote Link to comment https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/#findComment-788380 Share on other sites More sharing options...
kenrbnsn Posted March 19, 2009 Share Posted March 19, 2009 I have been using the Google Visualization API's. Yes, you need use Javascript to use them, but they are very useful. Ken Quote Link to comment https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/#findComment-788388 Share on other sites More sharing options...
smacpettit Posted March 19, 2009 Author Share Posted March 19, 2009 Thanks guys I shall have a look at your suggestions Quote Link to comment https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/#findComment-788446 Share on other sites More sharing options...
ILMV Posted March 19, 2009 Share Posted March 19, 2009 You're missing a trick here, what about Google Charts? http://code.google.com/apis/chart/ Only problem is that it sometimes requires complex URLs to be constructed / sent, but there are classes online that will construct that for you, I in fact am creating one ILMV Quote Link to comment https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/#findComment-788458 Share on other sites More sharing options...
smacpettit Posted March 19, 2009 Author Share Posted March 19, 2009 hhmmm just a quick question, if I use this method of writing to an XML file what would happen if more than one person was using it at the same time? Surly the results would get mixed up at the least if not showing one person another persons enquiry? Quote Link to comment https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/#findComment-788462 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.