From 1c8c2379ccf5ab9dd7cb46be965821d22173bcf4 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sat, 13 Aug 2016 12:16:51 +0100 Subject: [PATCH] Fix to Radar and Scatter chart examples --- Examples/33chartcreate-radar.php | 17 +++++++++-------- Examples/33chartcreate-scatter.php | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Examples/33chartcreate-radar.php b/Examples/33chartcreate-radar.php index 0c28add..7d1047a 100644 --- a/Examples/33chartcreate-radar.php +++ b/Examples/33chartcreate-radar.php @@ -97,14 +97,15 @@ $dataSeriesValues = array( // Build the dataseries $series = new PHPExcel_Chart_DataSeries( - PHPExcel_Chart_DataSeries::TYPE_RADARCHART, // plotType - NULL, // plotGrouping (Radar charts don't have any grouping) - range(0, count($dataSeriesValues)-1), // plotOrder - $dataSeriesLabels, // plotLabel - $xAxisTickValues, // plotCategory - $dataSeriesValues, // plotValues - NULL, // smooth line - PHPExcel_Chart_DataSeries::STYLE_MARKER // plotStyle + PHPExcel_Chart_DataSeries::TYPE_RADARCHART, // plotType + NULL, // plotGrouping (Radar charts don't have any grouping) + range(0, count($dataSeriesValues)-1), // plotOrder + $dataSeriesLabels, // plotLabel + $xAxisTickValues, // plotCategory + $dataSeriesValues, // plotValues + NULL, // plotDirection + NULL, // smooth line + PHPExcel_Chart_DataSeries::STYLE_MARKER // plotStyle ); // Set up a layout object for the Pie chart diff --git a/Examples/33chartcreate-scatter.php b/Examples/33chartcreate-scatter.php index 7fc5b5a..a5fab82 100644 --- a/Examples/33chartcreate-scatter.php +++ b/Examples/33chartcreate-scatter.php @@ -89,6 +89,7 @@ $series = new PHPExcel_Chart_DataSeries( $dataSeriesLabels, // plotLabel $xAxisTickValues, // plotCategory $dataSeriesValues, // plotValues + NULL, // plotDirection NULL, // smooth line PHPExcel_Chart_DataSeries::STYLE_LINEMARKER // plotStyle );