diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-02 08:43:45 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-02 08:43:45 +0000 |
commit | e437ca9b6521056527107ff9b81281cfd52485bc (patch) | |
tree | 86dde4e82c6e4192eb311bdf64e59300eef83585 /src/charts/line.php | |
parent | f33ce6cab843a93c227464915d00e0580768d9d6 (diff) | |
download | zetacomponents-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.php | 4 |
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 |