Пример #1
0
    $line_dot->set_fill_colour($color);
    $line_dot->set_fill_alpha(0.05);
    $line_dot->set_colour($color);
    $line_dot->set_key($legend, 10);
    $chart->add_element($line_dot);
    $line_dot = NULL;
}
$y = new y_axis();
// grid steps:
$y->set_range(0, $max_val + 10, (int) (($max_val + 10) / 10));
/*$y_labels = new y_axis_labels();
$y_labels->set_size (15);
$y->set_labels( $y_labels );*/
$chart->set_y_axis($y);
$x = new x_axis();
$x->offset(true)->steps(1);
//var_dump($labels);
$chart->set_x_axis($x);
//
// Style the X Axis Labels:
//
$x_labels = new x_axis_labels();
// show every other label:
$x_labels->set_steps(5);
//$x_labels->set_size( 15 );
// set them vertical
//$x_labels->set_vertical();
$x_labels->set_labels($labels);
//
// Add the X Axis Labels to the X Axis
//