title( 'Thailand Internet Bandwidth (Mornitor)', '{font-size: 18px; color: #000000}' ); // we add 3 sets of data: $g->set_data( $inter ); //area_hollow( $width, $dot_size, $alpha, $colour [, $text=''][, $font_size=''][, $fill_colour] ) $g->line_hollow( 2, 3, '0x009b00', 'International Bandwidth (Gbps)', 12); $g->set_data( $dom ); $g->line_hollow( 2, 3, '0xcc0000', 'Domestics (Gbps)', 12); $g->set_x_labels($x); $g->set_tool_tip( '#key#
Month : #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, 2, '#999999' ); $g->set_x_axis_steps( 2 ); $g->set_y_max( $max ); $g->y_label_steps( 5 ); $g->set_y_legend( 'Gbps', 12, '#393DA8' ); $g->bg_colour = '#F0F0F0'; $g->set_inner_background( '#FFF2F2', '#FFE6D9', 90 ); $g->x_axis_colour( '#909090', '#D2D2FB' ); $g->y_axis_colour( '#909090', '#D2D2FB' ); echo $g->render(); ?>