I'm trying to use FunnelChart.
protected function dataSource()
{
return $this->dashboard()->getDataG1()
->run()
->process(\koolreport\processes\Group::process([
'sum' => ['qty_doc','qty_valid'],
'count' => ['accepted']
]))
->process(\koolreport\processes\Transpose::process());
}
With just the Group proccess, my result is a 1 row with values like (300, 200 and 100). But the Transpose seems to want a parameter that I can't figure out what is. And, after pipe it through Transpose I guess I will need to pipe it through ColumnRename as well.