WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Tutorial : Chart with other design

Tutorials

>

Tutorial Graphic

>

Tutorial : Chart with other design


Graphic-05: Tutorial der Komponente Graphic vom PHP FrameWork WebSite-PHP.

Tutorial : Chart with other design:



Zurück zum Tutorial der Komponente Graphic



Quelltext

Quelltext



Um Graphic zu benutzen, müssen Sie zum Admin Interface vom Framework WebSite-PHP gehen.

Wenn Sie sich eingeloggt haben gehen Sie zum Menü Konfiguration -> Module Konfigurieren und aktivieren das Modul Graphic.



Datei: /pages/tutorials/graphic/graphic-05.php

<?php
class Graphic05 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Chart with other design";
        
        
$this->render = new Chart("chart-05");
        
        
// init data
        
$array_chart_data = array();
        
$array_chart_data2 = array();
        
$array_chart_data3 = array();
        for (
$i=0$i 12$i++) {
            
$array_chart_data[] = array($irand(099));
            
$array_chart_data2[] = array($irand(099));
            
$array_chart_data3[] = array($irand(099));
        }
        
        
// set points of the graphics
        
$this->render->addPoints("Data 1"
                                
$array_chart_data,
                                
Chart::DESIGN_LINES_POINTS_WITH_STEPS);
        
$this->render->addPoints("Data 2"
                                
$array_chart_data2,
                                
Chart::DESIGN_LINES_WITH_STEPS);
        
$this->render->addPoints("Data 3"
                                
$array_chart_data3,
                                
Chart::DESIGN_POINTS);
                                
        
// display legend
        
$this->render->setLegend();
    }
}
?>


Zurück zum Tutorial der Komponente Graphic


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker