phpSensei Posted January 8, 2009 Share Posted January 8, 2009 Now what would be the best approach for this? I required of no coding help, just some PHP tips... I already have this going <?php $img = imagecreatetruecolor(600,600); // Lmao $black = imagecolorallocate($img, 0,0,0); $white = imagecolorallocate($img, 255,255,255); imagefill($img,0,0,$white); imageline($img,0,0,0,500,$black); imageline($img,0,500,500,500,$black); header('Content-Type: image/png'); imagepng($img); imagedestroy($img); ?> This draws the x and y axis, but the approach seems corky for some reason. any ideas or tips? Link to comment https://forums.phpfreaks.com/topic/139941-drawing-graphs/ Share on other sites More sharing options...
Maq Posted January 8, 2009 Share Posted January 8, 2009 Why don't you use a pre-made library like jpGraph? Link to comment https://forums.phpfreaks.com/topic/139941-drawing-graphs/#findComment-732166 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.