PhpSpreadsheet/tests/PhpSpreadsheetTests/Chart
oleibman 5c13b179a1
Replace Dev jpgraph/jpgraph with mitoteam/jpgraph (#2997)
* Replace Dev jpgraph/jpgraph with mitoteam/jpgraph

PR #2979 added support for mitoteam/jpgraph as an alternative to jpgraph/jpgraph. The package jpgraph/jpgraph is abandoned in composer, and the version loaded with composer has been unusable for some time. This PR removes the dev requirement for jpgraph/jpgraph, and adds a dev requirement for mitoteam/jpgraph in its place.

With a usable graph library, a number of tests and samples that had been disabled are now re-enabled. A lot of new functionality has been added to Charts recently. Some of that new code has exposed bugs in JpgraphRendererBase. I have fixed those where I could. A handful of exceptions remain; I will investigate, and hopefully fix, those over time, but I don't feel it is necessary to fix them all before installing this PR - we are already way ahead of the game with the graphs that are working.

Three members had been ignoring code coverage in whole or in part because of the unavailability of a usable graph libray. Code coverage is restored in them. I am relieved to report that, although they aren't completely covered, adding them did not reduce code coverage by much - it is still over 90.4%.

I took a look at JpgraphRendererBase and Phpstan. Phpstan reports 128 problems. When I added some docblocks to correct some of those, the number increased to 284. Sigh. I will investigate over time, but, for now, we will still suppress Phpstan for JpgraphRendererBase.

I do not find a License file for mitoteam. However, there also wasn't one for jpgraph in the first place. Based on that and the discussion in #2996 (mitoteam will be used in exactly the same manner as mpdf), I don't think this is a problem. IANAL.

* PHP 8.2 Problems

Tons of "cannot create dynamic property" deprecations in jpgraph. Disable the test with most of those for now; leave the two with only a handful of messages enabled.

* Correct Failures in 2 Stock Charts

Down to 6 templates on which Render fails.
2022-08-13 18:14:25 -07:00
..
AxisGlowTest.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
AxisPropertiesTest.php Complete Support for Chart/Axis and Gridlines (#2881) 2022-06-15 19:00:33 -07:00
AxisShadowTest.php Add Support to Chart/Axis and Gridlines for Shadow (#2872) 2022-06-09 18:08:56 -07:00
BarChartCustomColorsTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
ChartMethodTest.php Add setName Method for Chart (#3001) 2022-08-12 20:10:45 -07:00
Charts32CatAxValAxTest.php Add Support to Chart/Axis and Gridlines for Shadow (#2872) 2022-06-09 18:08:56 -07:00
Charts32ColoredAxisLabelTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
Charts32DsvGlowTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
Charts32DsvLabelsTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
Charts32ScatterTest.php Charts - Gradients, Transparency, Hidden Axes (#2950) 2022-07-23 08:06:13 -07:00
Charts32XmlTest.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
ChartsOpenpyxlTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
ChartsTitleTest.php Add Support to Chart/Axis and Gridlines for Shadow (#2872) 2022-06-09 18:08:56 -07:00
ColorTest.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
DataSeriesValues2Test.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
DataSeriesValuesTest.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
GridlinesLineStyleTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
GridlinesShadowGlowTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
Issue589Test.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
Issue2077Test.php Fix Chart Problems and Memory Leak in Xlsx Writer (#2930) 2022-07-14 08:30:36 -07:00
Issue2506Test.php Xlsx Chart Reader and Writer Mishandle Explosion Value (#2928) 2022-07-14 07:48:53 -07:00
Issue2931Test.php Fixes for Surface Charts (#2933) 2022-07-16 22:30:11 -07:00
Issue2965Test.php Limited Support for Chart Titles as Formulas (#2971) 2022-08-06 17:39:18 -07:00
LayoutTest.php Fix Chart Problems and Memory Leak in Xlsx Writer (#2930) 2022-07-14 08:30:36 -07:00
LegendTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
LineStylesTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
MultiplierTest.php Add Support to Chart/Axis and Gridlines for Shadow (#2872) 2022-06-09 18:08:56 -07:00
PieFillTest.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
RenderTest.php Replace Dev jpgraph/jpgraph with mitoteam/jpgraph (#2997) 2022-08-13 18:14:25 -07:00
RoundedCornersTest.php Charts Support for Rounded Corners and Trendlines (#2976) 2022-08-06 18:06:36 -07:00
ShadowPresetsTest.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
TitleTest.php DocBlock Changes for Chart/Title 2021-07-02 14:33:43 -07:00
TrendLineTest.php Charts Support for Rounded Corners and Trendlines (#2976) 2022-08-06 18:06:36 -07:00