Exemplo n.º 1
0
$chart->x_axis = null;

echo $chart->toPrettyString();
*/
$title = new title("ESTADISTICAS CONTROL DE LEGALIDAD");
$data = array($_SESSION['total1']);
$bar = new bar_glass();
$bar->colour('#0404B4');
$bar->key('SOLICITUDES', 12);
$bar->set_values($data);
$data2 = array($_SESSION['total2']);
$bar2 = new bar_glass();
$bar2->colour('#5FB404');
$bar2->key('RESPUESTAS', 12);
$bar2->set_values($data2);
$data3 = array($_SESSION['total3']);
$bar3 = new bar_glass();
$bar3->colour('#BF3B69');
$bar3->key('EN TRAMITE', 12);
$bar3->set_values($data3);
$y = new y_axis();
$y->set_range(0, $_SESSION['total1'], 25);
$chart = new open_flash_chart();
$chart->set_title($title);
$chart->set_bg_colour('#FFFFFF');
$chart->add_element($bar);
$chart->add_element($bar2);
$chart->add_element($bar3);
$chart->add_y_axis($y);
echo $chart->toString();
Exemplo n.º 2
0
$title = new title("\nJahresueberblick");
$title->set_style('{font-size: 20px; color: #778877}');
$bar_last = new bar_glass();
$bar_last->key("Voriges Jahr {$last_year}", 12);
$bar_last->colour('#546656');
$bar_last->set_tooltip('#val# kWh');
$data = array();
for ($i = 0; $i < count($data_last); $i++) {
    $bval = new bar_value($data_last[$i]);
    $bval->{"on-click"} = "load_chart('month',{$ltime_axis[$i]})";
    $data[] = $bval;
}
$bar_last->set_values($data);
$bar_curr = new bar_glass();
$bar_curr->key("Aktuelles Jahr {$curr_year}", 12);
$bar_curr->colour('#EFC01D');
$bar_curr->set_alpha(0.8);
$bar_curr->set_tooltip('#val# kWh');
$data = array();
for ($i = 0; $i < count($data_curr); $i++) {
    $bval = new bar_value($data_curr[$i]);
    $bval->{"on-click"} = "load_chart('month',{$ttime_axis[$i]})";
    $data[] = $bval;
}
$bar_curr->set_values($data);
$lin_soll = new Line();
$lin_soll->set_key("Sollwert {$curr_year}", 11);
$lin_soll->set_colour('#BFA447');
$lin_soll->set_width(1);
$lin_soll->set_values($data_soll);
$max = max(max($data_last), max($data_curr), max($data_soll)) * 1.15;