i have the following code <?php require_once 'includes/initialize.php'; set_include_path( get_include_path() . PATH_SEPARATOR . CHARTS_PATH); require_once "class/pDraw.class.php"; require_once "class/pImage.class.php"; require_once "class/pData.class.php"; // create data set $myDataset = array(0, 1, 1, 2, 3, 5, 8, 13); $myData = new pData(); $myData->addPoints( $myDataset ); $myData->setAxisName( 0, "Numbers" ); // define image object $myImage = new pImage( 600, 300, $myData ); $myImage->setFontProperties( array( "FontName" => CHARTS_PATH . "/fonts/GeosansLight.ttf", "FontSize" => 15 ) ); $myImage->setGraphArea( 25,25, 475,275 ); $myImage->drawScale(); // output bar chart $myImage->drawBarChart(); header( "Content-Type: image/png" ); $myImage->Render( null ); ?> how can i modify the code so that it produces pdf document instead …

Member Avatar
Member Avatar
+0 forum 3

Hello, [[All sample links may not work after the thread is solved, I will keep them up as long as I can though]] I'm trying to make a graph work, which it does, not when CSS is present on a page though... In my setup I use graph.php to create and generate a graph, it returns the image so it can be used in an <img> tag. When I use graph.php by typing it directly into the browser it works exactly how I want it to. Any help on how to fix the weird image "glitch" is appreciated. [URL="http://turt2live.com/mc/graph.php?x=Hour%20of%20the%20Day&y=Number%20of%20People%20Online&leg1=New%20Users&leg2=All%20Users&leg3=Average%20Users&file=http://mc.turt2live.com/data/day.csv&title=Users%20in%20the%20Past%2024%20Hours"]Here[/URL] is …

Member Avatar
Member Avatar
+0 forum 2

The End.