mirror of
https://github.com/seigler/neat-charts
synced 2025-07-27 01:16:09 +00:00
improved sparklines
This commit is contained in:
parent
5d73afddd0
commit
b04fc0416f
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ namespace NeatCharts {
|
|||
$this->height = floor($aspectRatio * $this->width);
|
||||
$this->options['height'] = $this->height + $this->padding['top'] + $this->padding['bottom'];
|
||||
}
|
||||
|
||||
$this->padding['left'] = $this->padding['right'] = $this->options['fontSize'] / 2;
|
||||
if ($this->options['yAxisEnabled']) {
|
||||
$numLabels = 2 + ceil($this->height / $this->options['fontSize'] / 6);
|
||||
$labelInterval = $this->yRange / $numLabels;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue