mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-23 05:46:06 +03:00
Fix to axis rendering for donut and pie charts
This commit is contained in:
parent
133959a971
commit
54c3630236
@ -107,13 +107,11 @@ class PHPExcel_Chart_Renderer_jpgraph
|
|||||||
|
|
||||||
$testCurrentIndex = 0;
|
$testCurrentIndex = 0;
|
||||||
foreach($datasetLabels as $i => $datasetLabel) {
|
foreach($datasetLabels as $i => $datasetLabel) {
|
||||||
array_reverse($datasetLabel);
|
|
||||||
|
|
||||||
if (is_array($datasetLabel)) {
|
if (is_array($datasetLabel)) {
|
||||||
if ($rotation == 'bar') {
|
if ($rotation == 'bar') {
|
||||||
$datasetLabel = array_reverse($datasetLabel);
|
|
||||||
$datasetLabels[$i] = implode(" ",$datasetLabel);
|
$datasetLabels[$i] = implode(" ",$datasetLabel);
|
||||||
} else {
|
} else {
|
||||||
|
$datasetLabel = array_reverse($datasetLabel);
|
||||||
$datasetLabels[$i] = implode("\n",$datasetLabel);
|
$datasetLabels[$i] = implode("\n",$datasetLabel);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user