summaryrefslogtreecommitdiffstats
path: root/src/data_container
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-08-07 08:54:35 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-08-07 08:54:35 +0000
commitd5bea5137c89620edda8e2db60d64ac4b4cedcc8 (patch)
tree6a237445d7f2075309f73fd72423ca46654df710 /src/data_container
parent26d70a2a24d560f24c75555c19527d63819c7150 (diff)
downloadzetacomponents-graph-d5bea5137c89620edda8e2db60d64ac4b4cedcc8.zip
zetacomponents-graph-d5bea5137c89620edda8e2db60d64ac4b4cedcc8.tar.gz
- Fixed bug #11180: Color Palette: $dataSetColor in ezcGraphPalette starts
with index 1 and not zero in pie charts # All images of pie charts required an update of course. # Same for test cases explicitely checking the color values.
Diffstat (limited to 'src/data_container')
-rw-r--r--src/data_container/single.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/data_container/single.php b/src/data_container/single.php
index 45ed951..48145b9 100644
--- a/src/data_container/single.php
+++ b/src/data_container/single.php
@@ -37,6 +37,9 @@ class ezcGraphChartSingleDataContainer extends ezcGraphChartDataContainer
{
parent::addDataSet( $name, $dataSet );
+ // Resette palette color counter
+ $this->chart->palette->resetColorCounter();
+
// Colorize each data element
foreach ( $this->data[$name] as $label => $value )
{
OpenPOWER on IntegriCloud