Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Chart Samples Fix
Update chart parameter from 0 to DataSeries::EMPTY_AS_GAP
  • Loading branch information
cwolcott committed Apr 18, 2020
commit 7b09bf24840e8d0c1d37c03dd1440cd35d9021c0
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).

### Fixed

- Fix Chart samples by updating chart parameter from 0 to DataSeries::EMPTY_AS_GAP
- Handle Error in Formula Processing Better for Xls [#1267](https://github.com/PHPOffice/PhpSpreadsheet/pull/1267)
- Handle ConditionalStyle NumberFormat When Reading Xlsx File [#1296](https://github.com/PHPOffice/PhpSpreadsheet/pull/1296)
- Fix Xlsx Writer's handling of decimal commas [#1282](https://github.com/PHPOffice/PhpSpreadsheet/pull/1282)
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_area.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
$yAxisLabel // yAxisLabel
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_bar_stacked.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
$yAxisLabel // yAxisLabel
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_column.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
$yAxisLabel // yAxisLabel
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_column_2.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
$xAxisLabel, // xAxisLabel
$yAxisLabel // yAxisLabel
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_composite.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
null // yAxisLabel
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_line.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
$yAxisLabel // yAxisLabel
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_multiple_charts.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
$legend2, // legend
$plotArea2, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
$yAxisLabel2 // yAxisLabel
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_pie.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
$legend1, // legend
$plotArea1, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
null // yAxisLabel - Pie charts don't have a Y-Axis
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_pie_custom_colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
null, // legend
$plotArea2, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
null // yAxisLabel - Like Pie charts, Donut charts don't have a Y-Axis
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_radar.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
null // yAxisLabel - Radar charts don't have a Y-Axis
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_scatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
null, // xAxisLabel
$yAxisLabel // yAxisLabel
);
Expand Down
2 changes: 1 addition & 1 deletion samples/Chart/33_Chart_create_stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
$legend, // legend
$plotArea, // plotArea
true, // plotVisibleOnly
0, // displayBlanksAs
DataSeries::EMPTY_AS_GAP, // displayBlanksAs
$xAxisLabel, // xAxisLabel
$yAxisLabel // yAxisLabel
);
Expand Down
2 changes: 2 additions & 0 deletions src/PhpSpreadsheet/Chart/DataSeries.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class DataSeries
const STYLE_MARKER = 'marker';
const STYLE_FILLED = 'filled';

const EMPTY_AS_GAP = 'gap';

/**
* Series Plot Type.
*
Expand Down