1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<?php
// *************************************************************************************************************
// Tableau de bord des ventes
// *************************************************************************************************************
require ("_dir.inc.php");
require ("_profil.inc.php");
require ($DIR."_session.inc.php");
require_once ($RESSOURCE_DIR."/php-ofc-library/open-flash-chart.php");
$data = array(1,2,3,4,5,6,7);
$jour_liste = array("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche");
$d = new solid_dot();
$d->size(2)->halo_size(1)->colour('#f29400');
$x = new x_axis();
$x->set_stroke(1);
$x->set_colour("#cccccc");
$x_labels = new x_axis_labels();
$x_labels->set_colour( '#cccccc' );
$x_labels->set_size( 11 );
$x_labels->set_labels($jour_liste);
$x->set_labels( $x_labels );
$line = new line();
$line->set_default_dot_style($d);
$line->set_width( 2 );
$line->set_colour( '#f29400' );
$line->set_values( $data );
$y = new y_axis();
$y->set_range(0, 7, 4);
$y->set_stroke(1);
$y->set_colour("#cccccc");
$y->set_steps( 4 );
$title = new title("Mes premières Statistiques");
$title->set_style( "{font-size: 12px; color: #999999; text-align: center;}" );
$chart = new open_flash_chart();
$chart->set_title( $title );
$chart->set_number_format(0, true, true, true );
$chart->set_bg_colour( "#FFFFFF" );
$chart->add_element( $line );
$chart->set_x_axis( $x );
$chart->set_y_axis( $y );
echo $chart->toString();
?> |
Partager