summaryrefslogtreecommitdiffstats
path: root/src/renderer
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-14 13:36:54 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-14 13:36:54 +0000
commit69c55935621e8f49fad1e318931291d31d6f6a7d (patch)
tree6949c31453f2ce1dc89ab2e68dc06864d01153a0 /src/renderer
parentaa0997b7670abfc7884f3f3406a56c25b675634b (diff)
downloadzetacomponents-graph-69c55935621e8f49fad1e318931291d31d6f6a7d.zip
zetacomponents-graph-69c55935621e8f49fad1e318931291d31d6f6a7d.tar.gz
- Made line thickness for line charts adjustable
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/2d.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/2d.php b/src/renderer/2d.php
index ffa5098..5d8aca4 100644
--- a/src/renderer/2d.php
+++ b/src/renderer/2d.php
@@ -72,13 +72,13 @@ class ezcGraphRenderer2D extends ezcGraphRenderer
* @param mixed $filled
* @return void
*/
- public function drawLine( ezcGraphColor $color, ezcGraphCoordinate $position, ezcGraphCoordinate $end, $filled = true )
+ public function drawLine( ezcGraphColor $color, ezcGraphCoordinate $position, ezcGraphCoordinate $end, $thickness = 1 )
{
$this->driver->drawLine(
$position,
$end,
$color,
- 1 + $filled
+ max( 1, $thickness )
);
}
OpenPOWER on IntegriCloud