From a204e0c7ec49bb104a30367c38e225e81ca61f4d Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Wed, 13 Dec 2017 19:54:25 +0900 Subject: [PATCH] Constant `TYPE_DOUGHTNUTCHART` is now `TYPE_DOUGHNUTCHART` --- CHANGELOG.md | 4 ++++ src/PhpSpreadsheet/Chart/DataSeries.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b51acbb..11533e00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Can read very small HTML files - [#194](https://github.com/PHPOffice/PhpSpreadsheet/issues/194) +### BREAKING CHANGE + +- Constant `TYPE_DOUGHTNUTCHART` is now `TYPE_DOUGHNUTCHART`. + ## [1.0.0-beta2] - 2017-11-26 ### Added diff --git a/src/PhpSpreadsheet/Chart/DataSeries.php b/src/PhpSpreadsheet/Chart/DataSeries.php index 105f6505..1f434ae2 100644 --- a/src/PhpSpreadsheet/Chart/DataSeries.php +++ b/src/PhpSpreadsheet/Chart/DataSeries.php @@ -14,15 +14,15 @@ class DataSeries const TYPE_AREACHART_3D = 'area3DChart'; const TYPE_PIECHART = 'pieChart'; const TYPE_PIECHART_3D = 'pie3DChart'; - const TYPE_DOUGHTNUTCHART = 'doughnutChart'; - const TYPE_DONUTCHART = self::TYPE_DOUGHTNUTCHART; // Synonym + const TYPE_DOUGHNUTCHART = 'doughnutChart'; + const TYPE_DONUTCHART = self::TYPE_DOUGHNUTCHART; // Synonym const TYPE_SCATTERCHART = 'scatterChart'; const TYPE_SURFACECHART = 'surfaceChart'; const TYPE_SURFACECHART_3D = 'surface3DChart'; const TYPE_RADARCHART = 'radarChart'; const TYPE_BUBBLECHART = 'bubbleChart'; const TYPE_STOCKCHART = 'stockChart'; - const TYPE_CANDLECHART = self::TYPE_STOCKCHART; // Synonym + const TYPE_CANDLECHART = self::TYPE_STOCKCHART; // Synonym const GROUPING_CLUSTERED = 'clustered'; const GROUPING_STACKED = 'stacked';