if (date('w', $timestamp) == 1 && $day != 0) { $key = date('M j', $timestamp); $bar = $bar_highlight; } break; case 90: $key = $day; if (date('j', $timestamp) == 1 && $day < -3) { $key = date('M j', $timestamp); $bar = $bar_highlight; } break; } $data[$key] = $bar; } class Graph extends GDGraph { function _get_specs($data, $type) { $result = parent::_get_specs($data, $type); $max = $result['max_value']; $max = (int) ceil($max / 10.0) * 10; return array('min_value' => 0, 'max_value' => $max); } } $t_variable = gettext($variable); $t_last = gettext('last'); $t_days = gettext('days'); $gdg = new Graph(250, 250, "{$t_variable} ({$t_last} {$days_word} {$t_days})", 255, 255, 255, 0, 0, 0, 0, 0, 0, false); $gdg->bar_graph($data, '', '', $days_back == 7 ? 80 : 100, 5);