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

@ -303,7 +303,7 @@ class PHPGraphLib {
}
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) {