diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-12 11:20:27 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-12 11:20:27 +0000 |
commit | 22649b2b81c18461fd85793690de5d04b45806fa (patch) | |
tree | a227e9ebef702838ddc1d84b1348464663b80f16 /src/charts/pie.php | |
parent | b269dab61f162292ba4ad1f3cb400e182be23cee (diff) | |
download | zetacomponents-graph-22649b2b81c18461fd85793690de5d04b45806fa.zip zetacomponents-graph-22649b2b81c18461fd85793690de5d04b45806fa.tar.gz |
- Added image map support
# This changes all generated SVGs because each genereted element has an ID now
Diffstat (limited to 'src/charts/pie.php')
-rw-r--r-- | src/charts/pie.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/charts/pie.php b/src/charts/pie.php index 5f4258a..b21401e 100644 --- a/src/charts/pie.php +++ b/src/charts/pie.php @@ -35,6 +35,7 @@ class ezcGraphPieChart extends ezcGraphChart { // Only draw the first (and only) dataset $dataset = $this->data->rewind(); + $datasetName = $this->data->key(); $this->driver->options->font = $this->options->font; @@ -53,6 +54,7 @@ class ezcGraphPieChart extends ezcGraphChart case ezcGraph::PIE: $renderer->drawPieSegment( $boundings, + new ezcGraphContext( $datasetName, $label ), $dataset->color[$label], $angle, $angle += $value / $sum * 360, |