chg: [dashboard-widget:worldmap] Added support of custom scale in widget config

feature/workflow-trigger-before-save
Sami Mokaddem 2023-10-19 11:21:09 +02:00
parent 1a4def8e16
commit edd937861a
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@
'meta' => 'icon'
));
$randomNumber = rand();
if (!empty($config['widget_config']['colour_scale'])) {
$data['colour_scale'] = json_encode($config['widget_config']['colour_scale']);
}
if (empty($data['colour_scale'])) {
$data['colour_scale'] = json_encode(array(
'#003FBF','#0063BF','#0087BF','#00ACBF','#00BFAD','#00BF89','#00BF64',