KoolReport's Forum

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

Dashboard - Widget - Google Chart - Bar Chart #2987

Open Katherine Wong opened this topic on on Feb 14, 2023 - 1 comments

Katherine Wong commented on Feb 14, 2023

Hi, I created the the BarChart, when I have only 1 category of data, the chart shown like this which I think is incorrect.

But if my data have multiple category, it shown correctly.

Can you assists me.

Thanks.

Sebastian Morales commented on Feb 14, 2023

It seems Google chart made a mistake when automatically setting min value for the value axis too high. You can try setting the value axis' min manually like this:

BarChart::create(array(
    ...
    "options" => array(
        "vAxis" => array(
          "viewWindow" => array(
            "min" => 0
          )
        )
    )
));

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
None yet

None