PhpSpreadsheet/samples/templates
oleibman ef031e74e1
More Chart Fixes (#2841)
* More Chart Fixes

Taking up where #2828 left off. Most of the following changes are demonstrated in 32readwriteChartWithImages1:
- Adds support for "scheme" colors (because rgb, theme, and index colors just weren't enough for Excel) for DataSeriesValues. See issue #2299.
- For chart titles (including axis labels), rather than a font name, Excel supplies a 3-fold series of font names for Latin, East Asian, and Complex Scripts. New properties `latin`, `eastAsian`, and `complexScript` are added to the Font class. I frankly have no idea how, or even if, you can set these in Excel; my test case (sample 32readwriteScatterChart7) is a result of manually editing the XML.
- Add support for subscript/superscript to chart titles. This requires a new property `baseLine` in Font (positive=superscript negative=subscript baseline value says how high/low).
- Support for underscore with different scheme color than its text, using a new string property `uSchemeClr` in Font.
- Support for extra options for strikethrough, using a new string property `strikeType` in Font.
- Support for extra options for underscore type, using the existing string property `underline` in Font.
- I do not anticipate that any of the new Font properties will be used except for chart titles.
- If no default font overrides are found for a Rich Text element in chart titles, and no explicit font overrides are found for a Run under such an element, the font element of the Run is set to null.
- PhpSpreadsheet will always write a tag `a:pPr` and, underneath that, an empty tag `a:defRPr`, for default font settings for chart titles and axis labels. Combined with the previous bullet item, this will prevent PhpSpreadsheet from inadvertently overriding the Excel defaults (18 point bold Calibri for chart title, 10 point bold Calibri for axis labels).
- Axis labels will now be written to XML in the same manner as chart titles. Among other considerations, this means that they can now have colors. Fix #2700. Supersedes PR #2701. Demonstrated in sample 32readwriteStockChart5.

* Fix Some Chart Corruption

Fix #2817, where @bridgeplayr gives an excellent description of the problem and how it should be solved.

* Fix Bubble Charts

Sample produced corrupt output - see issue #2763. After a lot of research, solution was just re-ordering of parameters in a single function call.

Bubble 3D had not been supported at all. It is now.

Surface Charts remain corrupted.
2022-05-21 07:01:18 -07:00
..
26template.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
27template.xls Could not read old PNG with latest libpng on Ubuntu 17.04 2017-05-26 12:47:14 +02:00
28iterators.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
30template.xls Stacked Alignment - Use Class Constant Rather than Literal (#1716) 2021-02-03 23:53:04 +01:00
30templatebiff5.xls Stacked Alignment - Use Class Constant Rather than Literal (#1716) 2021-02-03 23:53:04 +01:00
31docproperties.xls Reorganize code samples 2016-09-01 01:17:13 +09:00
31docproperties.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32chartreadwrite.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32complexChartreadwrite.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaPercentageChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaPercentageChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaPercentageChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaStackedChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaStackedChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteAreaStackedChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarPercentageChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarPercentageChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarPercentageChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarStackedChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarStackedChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBarStackedChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBubbleChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteBubbleChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteChartWithImages1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnChart4.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnPercentageChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnPercentageChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnPercentageChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnStackedChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnStackedChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteColumnStackedChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteDonutChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteDonutChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteDonutChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteDonutChart4.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteDonutChartExploded1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteDonutChartMultiseries1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLineChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLineChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLineChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLineChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLineChartNoPointMarkers1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLinePercentageChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLinePercentageChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLineStackedChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteLineStackedChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwritePieChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwritePieChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwritePieChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwritePieChart3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwritePieChart4.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwritePieChartExploded1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwritePieChartExploded3D1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteRadarChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteRadarChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteRadarChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteScatterChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteScatterChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteScatterChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteScatterChart4.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteScatterChart5.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteScatterChart6.xlsx Some Fixes for Scatter Charts (#2828) 2022-05-17 07:48:24 -07:00
32readwriteScatterChart7.xlsx More Chart Fixes (#2841) 2022-05-21 07:01:18 -07:00
32readwriteStockChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteStockChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteStockChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteStockChart4.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteStockChart5.xlsx More Chart Fixes (#2841) 2022-05-21 07:01:18 -07:00
32readwriteSurfaceChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteSurfaceChart2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteSurfaceChart3.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
32readwriteSurfaceChart4.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
36writeLineChart1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
43mergeBook1.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
43mergeBook2.xlsx Reorganize code samples 2016-09-01 01:17:13 +09:00
46readHtml.html HTML reader supports text and background color from inline CSS, for `td` and `th` element 2017-06-23 11:28:17 +02:00
47_xlsfill.xls Fill Pattern Start and End Colors (#2444) 2021-12-18 08:53:23 -08:00
47_xlsxfill.xlsx Fill Pattern Start and End Colors (#2444) 2021-12-18 08:53:23 -08:00
Excel2003XMLTest.xml Prefer https:// URLs when available in docs & comments 2018-10-28 13:55:00 +11:00
GnumericTest.gnumeric Improve Coverage for Gnumeric (#1517) 2020-06-19 20:34:02 +02:00
OOCalcTest.ods Clean up very obsolete links 2017-12-30 19:07:22 +09:00
SylkTest.slk Improve Coverage for Sylk (#1514) 2020-06-19 20:35:44 +02:00
chartSpreadsheet.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
excel2003.short.bad.xml Improving Coverage for Excel2003 XML Reader (#1557) 2020-10-11 13:26:56 +02:00
excel2003.xml Reader XML Properties - Eliminate strtotime (#2134) 2021-05-31 11:04:07 +02:00
largeSpreadsheet.php Update to PHP-CS-Fixer 2.10 2018-01-28 15:59:38 +09:00
old.gnumeric Improve Coverage for Gnumeric (#1517) 2020-06-19 20:34:02 +02:00
sampleSpreadsheet.php Use DateTime Rather than gmmktime in Sample Template (#1827) 2021-02-14 18:54:49 +01:00
sampleSpreadsheet2.php Special Characters in Image File Name (#2416) 2021-12-06 06:50:09 -08:00