SetImageSize(320, 183); $graph->SetTitleFont("./VERDANA.TTF"); $graph->SetFont("./VERDANA.TTF"); $graph->SetFileFormat("png"); $graph->SetBackgroundColor("white"); $graph->SetChartBackgroundColor("silver"); $graph->SetMaxStringSize(5); $graph->SetChartBorderColor("black"); $graph->SetChartType("bars"); $graph->SetChartTitleSize(17); $graph->SetChartTitle("Charismakurve"); $graph->SetChartTitleColor("blue"); $graph->SetFontColor("black"); $graph->SetBarColor(array("red", "black")); $graph->SetBarBorderColor(array("black")); $graph->SetLegend(array("Schröder", "Merkel")); $graph->SetLegendPosition(2); $graph->SetTitleAxisX(""); $graph->SetTitleAxisY(""); $graph->SetAxisFontSize(8); $graph->SetAxisColor("black"); $graph->SetAxisTitleSize(10); $graph->SetTickLength(2); $graph->SetTickInterval(10); $graph->SetGridX(10); $graph->SetGridY(0); $graph->SetGridColor("white"); $graph->SetLineThickness(1); $graph->SetPointSize(2); //es werden dringend gerade Zahlen empfohlen $graph->SetPointShape("dots"); $graph->SetShading(0); $graph->SetNoData("Sorry, im Moment sind keine Daten verfügbar"); $graph->SetDataValues($data); $graph->SetDataValues(array( array("1", $s1_wert, $m1_wert), array("2", $s2_wert, $m2_wert), array("3", $s3_wert, $m3_wert), array("4", $s4_wert, $m4_wert), array("5", $s5_wert, $m5_wert), array("6", $s6_wert, $m6_wert), array(" "), array(" "), array(" "), )); $graph->DrawGraph(); ?>