diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-03-08 12:01:24 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-03-08 12:01:24 +0000 |
commit | b08ae56b53938333b051b91b0a1f912428864950 (patch) | |
tree | 68f089c05feab87cbaf0c3cfcd36407b3cce755f /src/charts | |
parent | eff7a30681180181dc22b9500e6db45a7a916183 (diff) | |
download | zetacomponents-graph-b08ae56b53938333b051b91b0a1f912428864950.zip zetacomponents-graph-b08ae56b53938333b051b91b0a1f912428864950.tar.gz |
- Added feature #9511: Added helper functions to create image maps an link SVG
images in ezcGraphTools
Diffstat (limited to 'src/charts')
-rw-r--r-- | src/charts/line.php | 10 | ||||
-rw-r--r-- | src/charts/pie.php | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/charts/line.php b/src/charts/line.php index 0f5aa42..f58d1c6 100644 --- a/src/charts/line.php +++ b/src/charts/line.php @@ -195,7 +195,7 @@ class ezcGraphLineChart extends ezcGraphChart $renderer->drawDataLine( $boundings, - new ezcGraphContext( $datasetName, $key ), + new ezcGraphContext( $datasetName, $key, $data->url[$key] ), $data->color->default, ( $lastPoint === false ? $point : $lastPoint ), $point, @@ -211,7 +211,7 @@ class ezcGraphLineChart extends ezcGraphChart { $renderer->drawDataHighlightText( $boundings, - new ezcGraphContext( $datasetName, $key ), + new ezcGraphContext( $datasetName, $key, $data->url[$key] ), $point, $yAxisNullPosition, $nr[$data->displayType->default], @@ -254,7 +254,7 @@ class ezcGraphLineChart extends ezcGraphChart $renderer->drawBar( $boundings, - new ezcGraphContext( $datasetName, $key ), + new ezcGraphContext( $datasetName, $key, $data->url[$key] ), $data->color->default, $point = $this->elements['xAxis']->axisLabelRenderer->modifyChartDataPosition( $this->elements['yAxis']->axisLabelRenderer->modifyChartDataPosition( @@ -272,7 +272,7 @@ class ezcGraphLineChart extends ezcGraphChart { $renderer->drawDataHighlightText( $boundings, - new ezcGraphContext( $datasetName, $key ), + new ezcGraphContext( $datasetName, $key, $data->url[$key] ), $point, $yAxisNullPosition, $nr[$data->displayType->default], @@ -399,6 +399,8 @@ class ezcGraphLineChart extends ezcGraphChart { $this->renderer->render( $file ); } + + $this->renderedFile = $file; } /** diff --git a/src/charts/pie.php b/src/charts/pie.php index 7ec1d7a..782ad32 100644 --- a/src/charts/pie.php +++ b/src/charts/pie.php @@ -107,7 +107,7 @@ class ezcGraphPieChart extends ezcGraphChart $renderer->drawPieSegment( $boundings, - new ezcGraphContext( $datasetName, $label ), + new ezcGraphContext( $datasetName, $label, $dataset->url[$label] ), $dataset->color[$label], $angle, $angle += $value / $sum * 360, @@ -249,6 +249,8 @@ class ezcGraphPieChart extends ezcGraphChart { $this->renderer->render( $file ); } + + $this->renderedFile = $file; } /** |