| @@ -65,9 +65,9 @@ | ||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * Get Number of Plot Series. |
| 69 | - * @return float|int | |
| 69 | + * @return int|float | |
| 70 | 70 | */ |
| 71 | 71 | public function getPlotSeriesCount() |
| 72 | 72 | { |
| 73 | 73 | $seriesCount = 0; |
| @@ -215,11 +215,17 @@ | ||
| 215 | 215 | */ |
| 216 | 216 | public function __clone() |
| 217 | 217 | { |
| 218 | 218 | $this->layout = ($this->layout === null) ? null : clone $this->layout; |
| 219 | + $this->dataTable = ($this->dataTable === null) ? null : clone $this->dataTable; | |
| 219 | 220 | $plotSeries = $this->plotSeries; |
| 220 | 221 | $this->plotSeries = []; |
| 221 | 222 | foreach ($plotSeries as $series) { |
| 222 | 223 | $this->plotSeries[] = clone $series; |
| 224 | + } | |
| 225 | + $gradientFillStops = $this->gradientFillStops; | |
| 226 | + $this->gradientFillStops = []; | |
| 227 | + foreach ($gradientFillStops as $gradientFillStop) { | |
| 228 | + $this->gradientFillStops[] = [$gradientFillStop[0], clone $gradientFillStop[1]]; | |
| 223 | 229 | } |
| 224 | 230 | } |
| 225 | 231 | } |