Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
hast du noch ein schönen Besipel dafür?mit der GD-Lib in PHP
Einfach runterscrollenhast du noch ein schönen Besipel dafür?
Oder mit JPGraph.
<?
$graphValues=array(0,80,23,-10,190,245,50,80,111,240,55,10,80,55,10,10);
header("Content-type: image/png");
$imgWidth=250;
$imgHeight=250;
// image-Objekt erstellen und Farben definieren
$image=imagecreate($imgWidth, $imgHeight);
$colorWhite=imagecolorallocate($image, 255, 255, 255);
$colorGrey=imagecolorallocate($image, 192, 192, 192);
$colorBlue=imagecolorallocate($image, 0, 0, 255);
// Rand für die Grafik erzeugen
imageline($image, 0, 0, 0, 250, $colorGrey);
imageline($image, 0, 0, 250, 0, $colorGrey);
imageline($image, 249, 0, 249, 249, $colorGrey);
imageline($image, 0, 249, 249, 249, $colorGrey);
// Raster erzeugen
for ($i=1; $i<16; $i++){
imageline($image, $i*25, 0, $i*25, 250, $colorGrey);
imageline($image, 0, $i*25, 250, $i*25, $colorGrey);
}
// Liniendiagramm erzeugen
for ($i=0; $i<15; $i++){
imageline($image, $i*25, (250-$graphValues[$i]),
($i+1)*25, (250-$graphValues[$i+1]), $colorBlue);
}
// Diagramm ausgeben und Grafik
// aus dem Speicher entfernen
imagepng($image);
imagedestroy($image);
?>