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(); ?>