I need to write a small program that will graph numbers from a function and then allow the person to download the graph or convert it to php i can be any simple function say y= 5 x Say I want x to start at 2 the program will auto increment it by 1 to 10 and graph
Just create table, and use Images as your increasing number, then allow them to download it as a .doc by changing content-type to word doc.
a) Cheat - For a bar graph use an image for each bar and set its height using the function result. No use for downloading though. b) Use GD or JPGraph c) Use Flash or SVG.
As pointer out, use some graphing tools. Lots of free ones. If you adventurous, try to make your own - use the php GD functions.
This may help you http://www.amcharts.com/pie/ http://www.liquidx.net/plotkit/ http://www.solutoire.com/plotr Code (markup): Source : miniajax 3l3ctr1c
I would have someone design a background for the graph with company logo and marking etc, that background can be used as a base image for your graph, you can then have gd built bars out of small gradient images that match the proportions of the data in perspective with the image still, and then paste them ontop of the background to create the graph, that image would be output as a normal image either to the browser or you could force a download of the graph