$bar_curr = new bar_glass(); $bar_curr->key("Aktuelles Jahr {$curr_year}", 12); $bar_curr->colour('#EFC01D'); $bar_curr->set_alpha(0.8); $bar_curr->set_tooltip('#val# kWh'); $data = array(); for ($i = 0; $i < count($data_curr); $i++) { $bval = new bar_value($data_curr[$i]); $bval->{"on-click"} = "load_chart('month',{$ttime_axis[$i]})"; $data[] = $bval; } $bar_curr->set_values($data); $lin_soll = new Line(); $lin_soll->set_key("Sollwert {$curr_year}", 11); $lin_soll->set_colour('#BFA447'); $lin_soll->set_width(1); $lin_soll->set_values($data_soll); $max = max(max($data_last), max($data_curr), max($data_soll)) * 1.15; $y = new y_axis(); $y->set_range(0, $max, round($max * 0.1, -1)); $x_labels = new x_axis_labels(); $x_labels->set_colour('#333333'); $x_labels->set_labels($time_axis); $x = new x_axis(); $x->set_colour('#333333'); $x->set_grid_colour('#CCCCCC'); $x->set_steps(1); $x->set_labels($x_labels); $chart = new open_flash_chart(); $chart->set_title($title); $chart->set_bg_colour('#ffffff');