adjusted the bar graph width when spacing is disabled
This commit is contained in:
parent
4fc812ef91
commit
af0ff51997
@ -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