From 724f713334360344e6c121f76e66a88e5301ea4e Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Tue, 11 Jul 2006 11:38:12 +0000 Subject: - Fixed boundings calculation for axis and data --- src/charts/line.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/charts') 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 -- cgit v1.1