Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide empty (value 0%) chartBarClustered ? #763

Open
alaglil opened this issue Oct 31, 2023 · 2 comments
Open

How to hide empty (value 0%) chartBarClustered ? #763

alaglil opened this issue Oct 31, 2023 · 2 comments

Comments

@alaglil
Copy link

alaglil commented Oct 31, 2023

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%');
@devlamine
Copy link

Please help the same problem

@wtahtah
Copy link

wtahtah commented Apr 18, 2024

help please we have the same problem

@alaglil alaglil changed the title How to hide empty (value 0%) Bar chart with setDlblNumFormat ? How to hide empty (value 0%) chartBarClustered ? Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants