KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

BarChart : comment forcer la valeur maximal de l'abscisse #2162

Open Sylvie Rougnon-Glasson opened this topic on on Jun 25, 2021 - 4 comments

Sylvie Rougnon-Glasson commented on Jun 25, 2021

Bonjour comment forcer la valeur maximal de l'abscisse Merci

Sebastian Morales commented on Jun 28, 2021

Which chart package are you using? Is it Google Chart, Chartjs, D3, etc? Tks,

Sylvie Rougnon-Glasson commented on Jun 28, 2021

J'utilise Google chart

Sebastian Morales commented on Jun 28, 2021

Pls try this code:

BarChart::create(array(
    ...
    "options" => array(
        ...
        "vAxis" => array(
            "viewWindowMode" => "explicit",
            "viewWindow" => array(
                "max" => $yourMaxValue,
                "min" => $yourMinValue,
            )
        )        
    )

Let us know if it works for you or not (if not pls post error messages and screenshots). Tks,

Sylvie Rougnon-Glasson commented on Jun 28, 2021

Thank You

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

BarCode