include_once( '/var/www/html/openflashchart/php-ofc-library/open-flash-chart.php' );
$x_label = array('AC','CO','GO','IN','MI','NET','OR','THAI');
$x_data = array(3071,18732,2179,3848,900,900,1200,7105);
$max = 20000;
$bar_1 = new bar_glass( 60, '#5E83BF', '#424581' );
$bar_1->data = $x_data;
// create the chart:
//
$g = new graph();
$g->title( 'Domain .TH Monitor', '{font-size:16px; color: #000000;}' );
$g->data_sets[] = $bar_1;
// label the X axis (10 labels for 10 bars):
$g->set_x_labels( $x_label );
$g->set_tool_tip( '#x_label# : #val#' );
// colour the chart to make it pretty:
$g->x_axis_colour( '#909090', '#D2D2FB' );
$g->y_axis_colour( '#909090', '#D2D2FB' );
$g->bg_colour = '#F0F0F0';
$g->set_inner_background( '#FFF2F2', '#FFE6D9', 90 );
$g->set_y_max( $max );
$g->y_label_steps( 5 );
$g->set_y_legend( 'Total Domain (.TH) Registration', 12, '#736AFF' );
$g->set_x_legend('Domain Types',12,'#736AFF');
echo $g->render();
?>