Generate an image-graphs in PHP

c10n3d_0r6

Senior Member
Joined
Nov 1, 2005
Messages
627
Reaction score
12
Generate an image-graph in PHP

I need to create a system for working out the weight and balance of an aeroplane before flight.

Generally what happens is that a user would calculate the centre of gravity of an aeroplane and see if this fits within a certain limit with the aid of a graph. If within the limit, they can fly, otherwise they have to move items around the aeroplane until they are within limits.

I know how to calculate the centre of gravity and check whether it falls within limits, but I would like to output this as an image to the user that they could print.

I've attached some images of somewhere where I've found something similar in use. Could somebody please give me some advice on how to go about this.

Thanks

massandbalance1.png
massandbalance (1).png
massandbalance.png
 
Last edited:
another alternative is to use the canvas element. I'd probably link that to another canvas element wherein I'll list the boxes/items and their placement within the plane, and set their weight. The graphing canvas then reflects those changes.

Requires a bit of coding tho.
 
Top
Sign up to the MyBroadband newsletter
X