diff options
Diffstat (limited to 'src/charts/line.php')
-rw-r--r-- | src/charts/line.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/charts/line.php b/src/charts/line.php index 8983f4a..321508d 100644 --- a/src/charts/line.php +++ b/src/charts/line.php @@ -71,6 +71,13 @@ class ezcGraphLineChart extends ezcGraphChart protected function renderData( $renderer, $boundings ) { + // Apply axis space + $boundings->x0 += ( $boundings->x1 - $boundings->x0 ) * $this->xAxis->axisSpace; + $boundings->x1 -= ( $boundings->x1 - $boundings->x0 ) * $this->xAxis->axisSpace; + + $boundings->y0 += ( $boundings->y1 - $boundings->y0 ) * $this->yAxis->axisSpace; + $boundings->y1 -= ( $boundings->y1 - $boundings->y0 ) * $this->yAxis->axisSpace; + foreach ( $this->data as $data ) { // Determine fill color for dataset |