title( 'Domestic Traffic ' . $dd, '{font-size: 18px; color: #000000}' ); // we add 3 sets of data: $g->set_data( $in ); //area_hollow( $width, $dot_size, $alpha, $colour [, $text=''][, $font_size=''][, $fill_colour] ) $g->area_hollow( 2, 3, 25, '#009B00', 'In', 12, '#66CC33' ); $g->set_data( $out ); $g->line( 1, '0x0000FF', 'Out', 12 ); $g->set_x_labels($x); $g->set_tool_tip( '#key#
Time : #x_label# [#val# Gbps]' ); // LOOK: label every 6 //set_x_label_style( int $size[, string $colour=''] [, integer $orientation:0=Horizontal, 1=vertical, 2=45 degrees] [, integer $step] [, string $grid_colour] ) $g->set_x_label_style( 10, '#333333', 2, 5, '#999999' ); //$g->set_x_label_style( 10, '#9933CC', 0, 6, '#00A000' ); // ... and tick every 3 (every quater): $g->set_x_axis_steps( 3 ); $g->set_y_max( $max ); $g->y_label_steps( 4 ); $g->set_y_legend( 'Gbps', 12, '#393DA8' ); $g->set_x_legend( ' 24 Hours', 12, '#393DA8'); $g->bg_colour = '#F0F0F0'; $g->set_inner_background( '#FFF2F2', '#FFE6D9', 90 ); //$g->set_inner_background( '#DDEFFA', '#CBD7E6', 90 ); $g->x_axis_colour( '#909090', '#D2D2FB' ); $g->y_axis_colour( '#909090', '#D2D2FB' ); //$g->x_axis_colour( '#FFFFFF', '#FFFFFF' ); //$g->y_axis_colour( '#FFFFFF', '#FFFFFF' ); echo $g->render(); ?>