summaryrefslogtreecommitdiffstats
path: root/src/charts
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-07-11 11:38:12 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-07-11 11:38:12 +0000
commit724f713334360344e6c121f76e66a88e5301ea4e (patch)
tree4632925659ebb68d90cf9bdc5ccb80de972b82e4 /src/charts
parent0e0f42c5fec14738ebd62abdb4b641083a580bf7 (diff)
downloadzetacomponents-graph-724f713334360344e6c121f76e66a88e5301ea4e.zip
zetacomponents-graph-724f713334360344e6c121f76e66a88e5301ea4e.tar.gz
- Fixed boundings calculation for axis and data
Diffstat (limited to 'src/charts')
-rw-r--r--src/charts/line.php7
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
OpenPOWER on IntegriCloud