Merge branch 'ent-4369-Graficas-en-meta-mobile-sin-TIP' into 'develop'

Ent 4369 graficas en meta mobile sin tip

See merge request artica/pandorafms!2780
This commit is contained in:
Alejandro Fraguas 2019-10-21 11:03:53 +02:00
commit 2884226e56
1 changed files with 14 additions and 0 deletions

View File

@ -166,6 +166,19 @@ class ModuleGraph
$time_compare = 'overlapped';
}
// Graph TIP view.
if (!isset($config['full_scale_option']) || $config['full_scale_option'] == 0) {
$fullscale = 0;
} else if ($config['full_scale_option'] == 1) {
$fullscale = 1;
} else if ($config['full_scale_option'] == 2) {
if ($this->graph_type == 'boolean') {
$fullscale = 1;
} else {
$fullscale = 0;
}
}
ob_start();
switch ($this->graph_type) {
case 'boolean':
@ -188,6 +201,7 @@ class ModuleGraph
'menu' => false,
'type_graph' => $config['type_module_charts'],
'vconsole' => true,
'fullscale' => $fullscale,
];
$graph = grafico_modulo_sparse($params);