PhpSpreadsheet/samples/Chart
oleibman 09406a6a3f
Move Gridlines from Chart to Axis (#2923)
* Move Gridlines from Chart to Axis

This could, I hope, be my last major change to Chart for a while. When I first noticed this problem, I thought it would be a breaking change. However, although this change establishes some deprecations, I don't think it breaks anything. Major and minor gridlines had only been settable by the Chart constructor. This PR moves them where they belong, to Axis (eexisting Chart constructor code will still work). This allows them to be specified from both X and Y axis.

Chart is now entirely covered except for 2 statements, one deprecated and one that I just can't figure out. 99.71% for Charts, 88.96% overall. All references to the Chart directory in Phpstan baseline are eliminated.

* Minor Fixes, Unit Tests

Line style color type should default to null not prstClr.

Chart X-axis and Y-axis should alway be Axis, never null.

Add some unit tests.

* More Tests, Some Improvements

Make it easier to change line styles, adding an alternate method besides a setter function with at least a dozen parameters.
2022-07-07 21:48:12 -07:00
..
32_Chart_read_write.php Upgrade to PHP-CS-Fixer 2.7 2017-10-01 20:07:04 +09:00
32_Chart_read_write_HTML.php Upgrade to latest PHP_CodeSniffer 2018-08-06 11:02:16 +09:00
32_Chart_read_write_PDF.php Upgrade to latest PHP_CodeSniffer 2018-08-06 11:02:16 +09:00
33_Chart_create_area.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_bar.php Merge all examples together 2017-10-01 17:48:59 +09:00
33_Chart_create_bar_custom_colors.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
33_Chart_create_bar_labels_lines.php Move Gridlines from Chart to Axis (#2923) 2022-07-07 21:48:12 -07:00
33_Chart_create_bar_stacked.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_bubble.php Charts Additional Support for Layout and DataSeriesValues (#2922) 2022-07-04 08:43:54 -07:00
33_Chart_create_column.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_column_2.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_composite.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_line.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
33_Chart_create_multiple_charts.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_pie.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_pie_custom_colors.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_radar.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_scatter.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
33_Chart_create_scatter2.php Additional Support for Chart DataSeriesValues (#2906) 2022-06-29 17:52:09 -07:00
33_Chart_create_stock.php Scrutinizer Complains Some Samples Class Name Conflict with Jpgraph (#2684) 2022-03-16 15:59:53 -07:00
34_Chart_update.php Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
35_Chart_render.php jpgraph seems to be finally dying with PHP. (#1926) 2021-03-15 14:14:44 +01:00