KoolReport's Forum

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

Class "koolreport\chartjs\Util" not found using AreaChart #2612

Open patrick opened this topic on on Mar 11, 2022 - 1 comments

patrick commented on Mar 11, 2022

Hey,

using the AreaChart class the Util class is not found.

Reason

use \koolreport\core\Utility;

but in processOptions() Util is used. Changing to Utillity everything works fine.

protected function processOptions()
    {
        $options = $this->options;

        $axes = Util::get($this->params, "axes", []);
        foreach ($axes as $k => $v) {
            $axes[$k]["id"] = $k;
        }
        $axes = array_values($axes);
        if (!empty($axes)) {
            $axesKey = "yAxes";
            Util::set($options, ["scales", $axesKey], $axes);
        }

        return $options;
    }

I have just bought the package - please propvide an update.

Cheers Patrick

KoolReport commented on Mar 11, 2022

Thank you very much Patrick. We have updated the library and it will be available in next version.

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
bug

ChartJS