adjusted the bar graph width when spacing is disabled

This commit is contained in:
hyung-hwan 2015-02-08 05:55:08 +00:00
parent 4fc812ef91
commit af0ff51997
2 changed files with 2 additions and 2 deletions

View File

@ -857,7 +857,7 @@ class Code extends Controller
// fill the holes // fill the holes
$stats[$date] = 0; $stats[$date] = 0;
} }
$month++; $month++;
$total_months++; $total_months++;
} }

View File

@ -303,7 +303,7 @@ class PHPGraphLib {
} }
else else
{ {
$unit_width = ($this->width - $this->y_axis_margin - $this->right_margin) / (($this->data_count * 2)); $unit_width = ($this->width - $this->y_axis_margin - $this->right_margin) / (($this->data_count * 2) + 1);
} }
if ($unit_width < 1 && !$this->bool_ignore_data_fit_errors) { if ($unit_width < 1 && !$this->bool_ignore_data_fit_errors) {