PHPPresentation icon indicating copy to clipboard operation
PHPPresentation copied to clipboard

How to hide empty (value 0%) chartBarClustered ?

Open alaglil opened this issue 2 years ago • 2 comments

With $serieOb->setDlblNumFormat('#%') I have the % which is only displayed when the value is 0. Is there a way to hide it if the value is 0?

image

    $serieOb = new Series($serieName, $serieData);
        $serieOb->setShowSeriesName(false);
        $serieOb->getFill()->setFillType(Fill::FILL_SOLID)->setStartColor(new Color($colorFill));
        $serieOb->getFont()->getColor()->setRGB($colorFont);
        $serieOb->setShowValue(true);
        $serieOb->setShowPercentage(false);
        //$serieOb->setLabelPosition(Series::LABEL_INSIDEEND);
        // Set Data Label Format For Chart To Display Percent
        $serieOb->setDlblNumFormat('0%');

alaglil avatar Oct 31 '23 20:10 alaglil

Please help the same problem

devlamine avatar Nov 16 '23 10:11 devlamine

help please we have the same problem

wtahtah avatar Apr 18 '24 09:04 wtahtah

@devlamine @wtahtah @alaglil Have you got a sample PowerPoint2007 file where 0%is hidden ?

Progi1984 avatar Aug 19 '24 06:08 Progi1984