summaryrefslogtreecommitdiffstats
path: root/src/charts/line.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-02 08:43:45 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-02 08:43:45 +0000
commite437ca9b6521056527107ff9b81281cfd52485bc (patch)
tree86dde4e82c6e4192eb311bdf64e59300eef83585 /src/charts/line.php
parentf33ce6cab843a93c227464915d00e0580768d9d6 (diff)
downloadzetacomponents-graph-e437ca9b6521056527107ff9b81281cfd52485bc.zip
zetacomponents-graph-e437ca9b6521056527107ff9b81281cfd52485bc.tar.gz
- Added tests for line chart rendering
Diffstat (limited to 'src/charts/line.php')
-rw-r--r--src/charts/line.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charts/line.php b/src/charts/line.php
index e17ef2d..adc5b55 100644
--- a/src/charts/line.php
+++ b/src/charts/line.php
@@ -33,8 +33,8 @@ class ezcGraphLineChart extends ezcGraphChart
foreach ( $data as $key => $value )
{
$point = new ezcGraphCoordinate(
- $this->elements['X_axis']->getCoordinate( $boundings, $key ),
- $this->elements['Y_axis']->getCoordinate( $boundings, $value )
+ (int) round( $this->elements['X_axis']->getCoordinate( $boundings, $key ) ),
+ (int) round( $this->elements['Y_axis']->getCoordinate( $boundings, $value ) )
);
// Draw line
OpenPOWER on IntegriCloud