KoolReport's Forum

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

Dashboard - D3 Waterfall #2113

Closed Andre Van Der Walt opened this topic on on May 31, 2021 - 2 comments

Andre Van Der Walt commented on May 31, 2021

Hi,

Please assist. I'm using D3 Waterfall with a Date on x axis. The date is filtered by a DateRangePicker. The default date is today. When the report loads I'm getting below error this seem to happen when there are no results.

This is the class for the D3 Waterfall using KWidget and rawSQL:

protected function onCreated()
    {
        $this
            ->use(\koolreport\d3\Waterfall::class)
            ->settings([
                "columns"=>[
                    "theDate",
                    "ScoreGrowthRate"=>[
                        "label"=>"Growth Rate",
                        "suffix"=>"%",
                    ]
                ],
                "yAxis"=>[
                    "suffix"=>"%",
                ],
                "colors"=>["#bdea74","#ff5454","#32CD32","#ff3b30"],
            ]);
    }

When the report return a result no problem.

Awaiting you feedback urgently.

KoolReport commented on Jun 1, 2021

I see, I have informed dev.team about this. I will come back to you.

KoolReport commented on Jun 1, 2021

The response from dev.team is that in next version of Dashboard, there will be an widget event called "DataReady", this event is fired after data is available, at that time we can decide whether to show the widget with hidden property .

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

Dashboard