You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chart issues have been pouring in recently. This is a partial response to issue PHPOffice#2762. It implements "no joins" for scatter charts, as well as having the reader and writer handle "point size", "line width", and "color" for markers. A new boolean property `scatterLines`, with setter and getter, is added to DataSeriesValues to handle joins (default is true which means scatter plot points *are* joined by lines). Some, but not yet all, default font properties for the chart title are handled (color and, surprisingly, font name present challenges).
With these changes, sample 32readwriteScatterChart1.xlsx now looks closer to its source. There are still some differences (x-axis changes), but I think this change is already large enough. I can work on the other problems later.
The code for reading charts has not yet been converted to be namespace aware. Having a tiny island of aware code in a sea of unaware makes no sense to me, so some of the new code is likewise unaware. I hope to be able to get to it eventually, but, among other considerations, it is difficult to generate suitable test cases.
message:"#^Property PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\DataSeriesValues\\:\\:\\$fillColor \\(array\\<string\\>\\|string\\) does not accept array\\<string\\>\\|string\\|null\\.$#"
message:"#^Cannot call method getFont\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\RichText\\\\Run\\|null\\.$#"
2635
-
count:12
2636
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2637
-
2638
-
-
2639
-
message:"#^Cannot call method setBold\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2640
-
count:1
2641
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2642
-
2643
-
-
2644
-
message:"#^Cannot call method setColor\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2645
-
count:1
2646
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2647
-
2648
-
-
2649
-
message:"#^Cannot call method setItalic\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2650
-
count:1
2651
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2652
-
2653
-
-
2654
-
message:"#^Cannot call method setName\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2655
-
count:1
2656
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2657
-
2658
-
-
2659
-
message:"#^Cannot call method setSize\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2660
-
count:1
2661
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2662
-
2663
-
-
2664
-
message:"#^Cannot call method setStrikethrough\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2665
-
count:2
2666
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2667
-
2668
-
-
2669
-
message:"#^Cannot call method setSubscript\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2670
-
count:1
2671
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2672
-
2673
-
-
2674
-
message:"#^Cannot call method setSuperscript\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2675
-
count:1
2676
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2677
-
2678
-
-
2679
-
message:"#^Cannot call method setUnderline\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
2680
-
count:3
2681
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2682
-
2683
2613
-
2684
2614
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xlsx\\\\Chart\\:\\:chartDataSeries\\(\\) has no return type specified\\.$#"
2685
2615
count:1
@@ -2705,11 +2635,6 @@ parameters:
2705
2635
count:1
2706
2636
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2707
2637
2708
-
-
2709
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xlsx\\\\Chart\\:\\:chartDataSeriesValueSet\\(\\) has parameter \\$marker with no type specified\\.$#"
2710
-
count:1
2711
-
path:src/PhpSpreadsheet/Reader/Xlsx/Chart.php
2712
-
2713
2638
-
2714
2639
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\Xlsx\\\\Chart\\:\\:chartDataSeriesValueSet\\(\\) has parameter \\$namespacesChartMeta with no type specified\\.$#"
2715
2640
count:1
@@ -5087,7 +5012,7 @@ parameters:
5087
5012
5088
5013
-
5089
5014
message:"#^Cannot call method getSize\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Font\\|null\\.$#"
0 commit comments