Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 6911 | Rev 6935 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6911 Rev 6916
Línea 49... Línea 49...
49
     * @param float[] $values
49
     * @param float[] $values
50
     * @param string $title
50
     * @param string $title
51
     * @param string $filename
51
     * @param string $filename
52
     */
52
     */
53
    function pieChart($labels, $values, $title, $filename) {
53
    function pieChart($labels, $values, $title, $filename) {
-
 
54
 
-
 
55
        $this->SetLegends($values, '');
-
 
56
        
54
        // We need some data
57
        // We need some data
55
        $datay = $values;
58
        $datay = $values;
56
        $datax = $labels;
59
        $datax = $labels;
Línea 57... Línea 60...
57
 
60
 
Línea 75... Línea 78...
75
        $graph->Stroke($filename);
78
        $graph->Stroke($filename);
76
    }
79
    }
Línea 77... Línea 80...
77
 
80
 
78
    function barChart($label, $values, $title, $filename)
81
    function barChart($label, $values, $title, $filename)
-
 
82
    {
79
    {
83
        $this->SetLegends($values, '');
80
        $graph = new Graph\Graph(700, count($values) * 50, 'auto');
84
        $graph = new Graph\Graph(700, count($values) * 50, 'auto');
81
        $graph->SetScale('textint');
85
        $graph->SetScale('textint');
82
        $graph->clearTheme();
86
        $graph->clearTheme();
83
        $graph->SetShadow();
87
        $graph->SetShadow();