We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e80aed9 commit f1fdc8dCopy full SHA for f1fdc8d
src/Linechart.php
@@ -271,7 +271,7 @@ private function prepareData(): void
271
272
$this->range = max(1, abs($max - $min));
273
274
- $height = (int) ($this->getSettings()->getHeight() ?? $this->range);
+ $height = max(1, (int) ($this->getSettings()->getHeight() ?? $this->range));
275
$this->ratio = $height / $this->range;
276
277
$this->min2 = $min * $this->ratio;
0 commit comments