-
-
Notifications
You must be signed in to change notification settings - Fork 376
Closed
Description
i tried to set some options for the chart in my controller like this
$chart->setOptions([
'title' => ['display'=> true, 'text' => $this->translator->trans('headline', ['%year%' => $year])],
'legend' => ['display' => true, 'position' => 'bottom'],
]);
this is then rendered as
{
// omitting the data part that works
"options": {
"title": {
"display": true,
"text": "Statistik 2020"
},
"legend": {
"display": true,
"position": "bottom"
}
}
}
but the check here
if (!payload.options.length) { |
replaces the options with an empty object, because
payload.options.length
is undefined while payload.options
contains the optionsGasjki
Metadata
Metadata
Assignees
Labels
No labels