Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/#findComment-788380
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/150124-php-chartsgraphs/#findComment-788458
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.