mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch '1827-Graficas_TIP_eje_x_no_mantiene_ratio' into 'develop'
1827 graficas tip eje x no mantiene ratio See merge request artica/pandorafms!1539
This commit is contained in:
commit
c9b2da9513
@ -3205,6 +3205,9 @@ function series_type_graph_array($data, $show_elements_graph){
|
|||||||
$data_return['color'][$key] = $color_series[$i];
|
$data_return['color'][$key] = $color_series[$i];
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
if($i > 14){
|
||||||
|
$i = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $data_return;
|
return $data_return;
|
||||||
}
|
}
|
||||||
|
@ -2248,7 +2248,7 @@ function graphic_agentaccess ($id_agent, $width, $height, $period = 0, $return =
|
|||||||
'only_image' => $only_image,
|
'only_image' => $only_image,
|
||||||
'homeurl' => $homeurl,
|
'homeurl' => $homeurl,
|
||||||
'menu' => true,
|
'menu' => true,
|
||||||
'backgroundColor' => '#f9faf9',
|
'backgroundColor' => 'transparent',
|
||||||
'type_graph' => 'area',
|
'type_graph' => 'area',
|
||||||
'font' => $config['fontpath'],
|
'font' => $config['fontpath'],
|
||||||
'font_size' => $config['font_size'],
|
'font_size' => $config['font_size'],
|
||||||
|
@ -727,10 +727,9 @@ function treeview_printTable($id_agente, $server_data = array(), $no_head = fals
|
|||||||
//echo '<div id="id_div" style="height: 10px"> </div>';
|
//echo '<div id="id_div" style="height: 10px"> </div>';
|
||||||
|
|
||||||
if ($config["agentaccess"]) {
|
if ($config["agentaccess"]) {
|
||||||
$access_graph = '<div>hjhhjhhj</div>';
|
$access_graph = '<div style="width:100%; height:130px;">';
|
||||||
$access_graph = '<div style="width:100%; heigth:200px;">';
|
$access_graph .= graphic_agentaccess($id_agente, 380, 120, SECONDS_1DAY, true, true);
|
||||||
$access_graph .= graphic_agentaccess($id_agente, 380, 90, SECONDS_1DAY, true, true);
|
$access_graph .= '</div>';
|
||||||
$access_graph .= '</div><br><br>';
|
|
||||||
ui_toggle($access_graph, __('Agent access rate (24h)'));
|
ui_toggle($access_graph, __('Agent access rate (24h)'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -815,11 +814,9 @@ function treeview_printTable($id_agente, $server_data = array(), $no_head = fals
|
|||||||
|
|
||||||
ui_toggle($table_interfaces, __('Interface information') . ' (SNMP)');
|
ui_toggle($table_interfaces, __('Interface information') . ' (SNMP)');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($server_data) && is_metaconsole()) {
|
if (!empty($server_data) && is_metaconsole()) {
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -417,7 +417,6 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark,
|
|||||||
|
|
||||||
function yFormatter(v, axis) {
|
function yFormatter(v, axis) {
|
||||||
format = new Array();
|
format = new Array();
|
||||||
|
|
||||||
for (i = 0; i < labels_total.length; i++) {
|
for (i = 0; i < labels_total.length; i++) {
|
||||||
var label = labels_total[i][1];
|
var label = labels_total[i][1];
|
||||||
// var shortLabel = reduceText(label, 25);
|
// var shortLabel = reduceText(label, 25);
|
||||||
@ -428,7 +427,9 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark,
|
|||||||
}
|
}
|
||||||
var div_attributes = 'style="font-size:'+font_size+'pt !important;'
|
var div_attributes = 'style="font-size:'+font_size+'pt !important;'
|
||||||
+ ' margin: 0; max-width: 150px;'
|
+ ' margin: 0; max-width: 150px;'
|
||||||
+ 'margin-right:5px;';
|
+ 'margin-right:5px';
|
||||||
|
+ 'margin-left: -1.5em';
|
||||||
|
+ 'text-align: right';
|
||||||
|
|
||||||
if (label.indexOf("<br>") != -1) {
|
if (label.indexOf("<br>") != -1) {
|
||||||
div_attributes += "min-height: 2.5em;";
|
div_attributes += "min-height: 2.5em;";
|
||||||
|
@ -247,11 +247,11 @@ enterprise_hook('close_meta_frame');
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<? if (!is_metaconsole()): ?>
|
<?php if (!is_metaconsole()){ ?>
|
||||||
<script type="text/javascript" src="include/javascript/fixed-bottom-box.js"></script>
|
<script type="text/javascript" src="include/javascript/fixed-bottom-box.js"></script>
|
||||||
<? else: ?>
|
<?php }else{ ?>
|
||||||
<script type="text/javascript" src="../../include/javascript/fixed-bottom-box.js"></script>
|
<script type="text/javascript" src="../../include/javascript/fixed-bottom-box.js"></script>
|
||||||
<? endif; ?>
|
<?php } ?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var treeController = TreeController.getController();
|
var treeController = TreeController.getController();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user