Fix to Radar and Scatter chart examples

This commit is contained in:
MarkBaker 2016-08-13 12:16:51 +01:00
parent 900325d0c8
commit 1c8c2379cc
2 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -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
);