summaryrefslogtreecommitdiffstats
path: root/src/renderer/2d.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/2d.php')
-rw-r--r--src/renderer/2d.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/renderer/2d.php b/src/renderer/2d.php
index 0ac0e91..83ed126 100644
--- a/src/renderer/2d.php
+++ b/src/renderer/2d.php
@@ -630,6 +630,11 @@ class ezcGraphRenderer2d extends ezcGraphRenderer
ezcGraphChartElementAxis $axis,
ezcGraphAxisLabelRenderer $labelClass = null )
{
+ $start->x += $boundings->x0;
+ $start->y += $boundings->y0;
+ $end->x += $boundings->x0;
+ $end->y += $boundings->y0;
+
// Determine normalized direction
$direction = new ezcGraphCoordinate(
$start->x - $end->x,
OpenPOWER on IntegriCloud