Fixing Pie Chart example to display pie charts
This commit is contained in:
parent
4baab36319
commit
c32dbfccc2
|
@ -87,7 +87,7 @@ $dataSeriesValues1 = array(
|
||||||
// Build the dataseries
|
// Build the dataseries
|
||||||
$series1 = new PHPExcel_Chart_DataSeries(
|
$series1 = new PHPExcel_Chart_DataSeries(
|
||||||
PHPExcel_Chart_DataSeries::TYPE_PIECHART, // plotType
|
PHPExcel_Chart_DataSeries::TYPE_PIECHART, // plotType
|
||||||
PHPExcel_Chart_DataSeries::GROUPING_STANDARD, // plotGrouping
|
NULL, // plotGrouping
|
||||||
range(0, count($dataSeriesValues1)-1), // plotOrder
|
range(0, count($dataSeriesValues1)-1), // plotOrder
|
||||||
$dataSeriesLabels1, // plotLabel
|
$dataSeriesLabels1, // plotLabel
|
||||||
$xAxisTickValues1, // plotCategory
|
$xAxisTickValues1, // plotCategory
|
||||||
|
@ -161,7 +161,7 @@ $dataSeriesValues2 = array(
|
||||||
// Build the dataseries
|
// Build the dataseries
|
||||||
$series2 = new PHPExcel_Chart_DataSeries(
|
$series2 = new PHPExcel_Chart_DataSeries(
|
||||||
PHPExcel_Chart_DataSeries::TYPE_DONUTCHART, // plotType
|
PHPExcel_Chart_DataSeries::TYPE_DONUTCHART, // plotType
|
||||||
PHPExcel_Chart_DataSeries::GROUPING_STANDARD, // plotGrouping
|
NULL, // plotGrouping
|
||||||
range(0, count($dataSeriesValues2)-1), // plotOrder
|
range(0, count($dataSeriesValues2)-1), // plotOrder
|
||||||
$dataSeriesLabels2, // plotLabel
|
$dataSeriesLabels2, // plotLabel
|
||||||
$xAxisTickValues2, // plotCategory
|
$xAxisTickValues2, // plotCategory
|
||||||
|
|
Loading…
Reference in New Issue