public function testMin() { $input = [1, 3, 2]; $this->assertEquals(1, arr_min($input)); }
} } } } $title = new title($title); $title->set_style("{font-size: 20px; color: #A2ACBA; text-align: center;}"); $bar = new bar_3d(); $bar->set_values($data); $bar->colour = '#D54C78'; $x_labels = new x_axis_labels(); $x_labels->set_labels($x_date); $x_axis = new x_axis(); $x_axis->set_3d(3); $x_axis->colour = '#909090'; $x_axis->set_labels($x_labels); $x_legend = new x_legend($x_title); $x_legend->set_style('{font-size: 20px; color: #778877}'); $y_axis = new y_axis(); $max = arr_max($data); $mix = arr_min($data); $per = round($max / 10); $max = round($max + $per + $per); $temp = '$y_axis->set_range(0,' . $max . ',' . $per . ');'; eval($temp); $chart = new open_flash_chart(); $chart->set_title($title); $chart->add_element($bar); $chart->set_x_axis($x_axis); $chart->set_x_legend($x_legend); $chart->set_y_axis($y_axis); echo $chart->toPrettyString();