SetDataType("linear-linear-error"); //Must be first thing //Set the Graph particulars $graph->SetPrecisionX(0); $graph->SetPrecisionY(0); $graph->SetUseTTF("0"); $graph->SetDrawYGrid("1"); // 1 = true $graph->SetDataValues($data); $graph->SetImageArea(600, 400); $graph->SetVertTickIncrement(""); $graph->SetHorizTickIncrement(1); $graph->SetErrorBarLineWidth(1); $graph->SetYScaleType("log"); $graph->SetPointShape("halfline"); $graph->SetErrorBarShape("line"); $graph->SetPlotType("points"); $graph->SetXGridLabelType("title"); $graph->SetXLabel("Day"); $graph->SetYLabel("index"); $graph->SetTitle("Stock Market Data"); //$graph->SetErrorBarColors(array("blue","red","green","black")); $graph->SetDataColors( array("blue","green","yellow","red"), //Data Colors array("black") //Border Colors ); //$graph->SetPlotAreaWorld(0,5,32,30); //$graph->SetPlotAreaPixels(150,50,600,400); /* //Other settings $graph->SetPlotBgColor(array(222,222,222)); $graph->SetBackgroundColor(array(200,222,222)); //can use rgb values or "name" values $graph->SetTextColor("black"); $graph->SetGridColor("black"); $graph->SetLightGridColor(array(175,175,175)); $graph->SetTickColor("black"); $graph->SetTitleColor(array(0,0,0)); // Can be array or name */ //Draw the graph $graph->DrawGraph(); ?>