Added graph tip view in mobile version - #4369

This commit is contained in:
Tatiana Llorente 2019-10-02 16:52:20 +02:00
parent 8e204605e5
commit fdc5074be3

View File

@ -166,6 +166,19 @@ class ModuleGraph
$time_compare = 'overlapped'; $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(); ob_start();
switch ($this->graph_type) { switch ($this->graph_type) {
case 'boolean': case 'boolean':
@ -188,6 +201,7 @@ class ModuleGraph
'menu' => false, 'menu' => false,
'type_graph' => $config['type_module_charts'], 'type_graph' => $config['type_module_charts'],
'vconsole' => true, 'vconsole' => true,
'fullscale' => $fullscale,
]; ];
$graph = grafico_modulo_sparse($params); $graph = grafico_modulo_sparse($params);