adjusted the bar graph width when spacing is disabled
This commit is contained in:
parent
4fc812ef91
commit
af0ff51997
@ -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++;
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user