diff options
Diffstat (limited to 'src/charts/line.php')
-rw-r--r-- | src/charts/line.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charts/line.php b/src/charts/line.php index b27e28f..2278994 100644 --- a/src/charts/line.php +++ b/src/charts/line.php @@ -19,9 +19,10 @@ class ezcGraphLineChart extends ezcGraphChart { parent::__construct(); - $this->elements['X_axis'] = new ezcGraphChartElementLabeledAxis(); + $this->addElement( 'X_axis', new ezcGraphChartElementLabeledAxis() ); $this->elements['X_axis']->position = ezcGraph::LEFT; - $this->elements['Y_axis'] = new ezcGraphChartElementNumericAxis(); + + $this->addElement( 'Y_axis', new ezcGraphChartElementNumericAxis() ); $this->elements['Y_axis']->position = ezcGraph::BOTTOM; } |