summaryrefslogtreecommitdiffstats
path: root/src/charts
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2009-07-21 11:25:18 +0000
committerKore Nordmann <github@kore-nordmann.de>2009-07-21 11:25:18 +0000
commit73061d5af4bcddd2df8169dccca17dfea5bb8477 (patch)
treedd1a19fe8c644a3f53d5f276ef5facfd5c6b57d6 /src/charts
parent9ce834beee81194e02525a6cb836516dc379eeb7 (diff)
downloadzetacomponents-graph-73061d5af4bcddd2df8169dccca17dfea5bb8477.zip
zetacomponents-graph-73061d5af4bcddd2df8169dccca17dfea5bb8477.tar.gz
- Implemented: #15133: Better configurable axis spaces.
# Large number of tests added. Had to go through all sensible combinations of # axis and axis spaces to ensure it works correctly.
Diffstat (limited to 'src/charts')
-rw-r--r--src/charts/line.php18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/charts/line.php b/src/charts/line.php
index 4c0ba14..4d0fc84 100644
--- a/src/charts/line.php
+++ b/src/charts/line.php
@@ -627,25 +627,17 @@ class ezcGraphLineChart extends ezcGraphChart
// Calculate inner data boundings of chart
$innerBoundings = new ezcGraphBoundings(
$boundings->x0 + $boundings->width *
- ( ( ( $this->elements['yAxis']->outerAxisSpace === null ) ||
- ( $this->elements['xAxis']->position === ezcGraph::LEFT ) ) ?
- $this->elements['yAxis']->axisSpace :
- $this->elements['yAxis']->outerAxisSpace ),
+ $this->elements['yAxis']->axisSpace,
$boundings->y0 + $boundings->height *
- ( ( ( $this->elements['xAxis']->outerAxisSpace === null ) ||
- ( $this->elements['yAxis']->position === ezcGraph::TOP ) ) ?
+ ( ( $this->elements['xAxis']->outerAxisSpace === null ) ?
$this->elements['xAxis']->axisSpace :
- $this->elements['yAxis']->outerAxisSpace ),
+ $this->elements['xAxis']->outerAxisSpace ),
$boundings->x1 - $boundings->width *
- ( ( ( $this->elements['yAxis']->outerAxisSpace === null ) ||
- ( $this->elements['xAxis']->position === ezcGraph::RIGHT ) ) ?
+ ( ( $this->elements['yAxis']->outerAxisSpace === null ) ?
$this->elements['yAxis']->axisSpace :
$this->elements['yAxis']->outerAxisSpace ),
$boundings->y1 - $boundings->height *
- ( ( ( $this->elements['xAxis']->outerAxisSpace === null ) ||
- ( $this->elements['yAxis']->position === ezcGraph::BOTTOM ) ) ?
- $this->elements['xAxis']->axisSpace :
- $this->elements['yAxis']->outerAxisSpace )
+ $this->elements['xAxis']->axisSpace
);
// Render axis
OpenPOWER on IntegriCloud