$bar = new bar( 95, '#5E83BF', '#424581' ); //$bar->key( 'documentos', 10 ); $bar->data = $data; // set the X axis labels $g->set_x_labels( $labels ); //$g->set_data( $data ); //$g->bar_sketch( 50, 6, '#99FF00', '#7030A0', '% Complete', 10 ); // add the bar object to the graph // $g->data_sets[] = $bar; $g->set_x_max(count($labels)); $g->set_x_min(count($labels)); $g->set_x_label_style( 11, '#A0A0A0', 2 ); $g->set_y_label_style( 11, '#A0A0A0' ); $g->x_axis_colour( '#A0A0A0', '#FFFFFF' ); //$g->set_x_legend( 'Week 1', 12, '#A0A0A0' ); $g->y_axis_colour( '#A0A0A0', '#FFFFFF' ); $g->set_y_min( min($data) ); $g->set_y_max( max($data) ); $g->y_label_steps( 2 ); } ?>