PHPExcel Piechart des étiquettes et des légendes

J'ai un problème avec la bibliothèque PHPExcel (1.7.7): Lorsque je veux créer un piechart, des étiquettes et des légendes ne sont pas affichés. Cependant, avec d'autres graphiques, je n'ai pas ce problème. Avez-vous une solution?

Grâce.

Voici le code utilisé:

$categories = array(
new PHPExcel_Chart_DataSeriesValues('String', 'RECAPITULATIF!$B$6:$B$8', null, 3),
    );

$values = array(
new PHPExcel_Chart_DataSeriesValues('Number',  'RECAPITULATIF!$F$6:$F$8', null, 3),
);

$series = new PHPExcel_Chart_DataSeries(
    PHPExcel_Chart_DataSeries::TYPE_PIECHART,       //plotType
    PHPExcel_Chart_DataSeries::GROUPING_CLUSTERED,  //plotGrouping
    array(0),                                       //plotOrder
    null,                                           //plotLabel
    $categories,                                    //plotCategory
    $values                                         //plotValues
    );

$plotarea = new PHPExcel_Chart_PlotArea(null, array($series));
$title = new PHPExcel_Chart_Title('Pie chart');
$legend = new PHPExcel_Chart_Legend(PHPExcel_Chart_Legend::POSITION_RIGHT, null, false);

$chart = new PHPExcel_Chart(
    'chart2',                                       //name
    $title,                                         //title
    $legend,                                        //legend
    $plotarea,                                      //plotArea
    true,                                           //plotVisibleOnly
    0,                                              //displayBlanksAs
    null,                                           //xAxisLabel
    null                                            //yAxisLabel
    );
n'est-ce pas parce ur paramètre null pour xAxisLabel et yAxisLabel ?

OriginalL'auteur user1646114 | 2012-09-04