data ) >= 1 && !isset( $this->data[$name] ) ) { throw new ezcGraphTooManyDataSetsExceptions( $name ); } else { parent::addDataSet( $name, $dataSet ); // Colorize each data element foreach ( $this->data[$name] as $label => $value ) { $this->data[$name]->color[$label] = $this->chart->palette->dataSetColor; } } } } ?>