Hi,
I have another problem with the dashboard platform. It seems that the panels are not working correctly. I.e. I have this in the widget function of my dashboard:
Panel::create()->header("Income Chart")->type("primary")->sub([
KWidget::create()
->use(PivotMatrix::create([
'title' => 'Test',
"dataStore"=>(new SLCMainMatrix)->dataStore('slc_compl_data'),
'template' => 'PivotMatrix-Bun',
'rowCollapseLevels' => array(0),
'columnCollapseLevels' => array(0, 1, 2),
'columnWidth' => '10px',
'hideTotalColumn' => true,
'dataMap' => function($v, $f) {
return sprintf("%.2f%%", $v * 100);
},
'headerMap' => function($v, $f) {
if ($f === 'date') return Carbon::parse($v)->format(env("DATE_FORMAT"));
return $v;
},
'cssClass' => [
'dataCell' => function($value, $cellInfo) {
if ($value >= 0.934) {
return 'bg-success text-dark';
} elseif ($value >=0.879) {
return 'bg-warning text-dark';
} else {
return 'bg-danger text-dark';
}
},
],
])
)
])
However, the Pivot table isn't shown inside the panel. Instead I get an empty panel below the pivot table.
Any help would be appreciated.
Thanks
Christian