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:
vgilc 2018-06-14 12:45:39 +02:00
commit c9b2da9513
5 changed files with 18 additions and 17 deletions

View File

@ -3205,6 +3205,9 @@ function series_type_graph_array($data, $show_elements_graph){
$data_return['color'][$key] = $color_series[$i];
$i++;
}
if($i > 14){
$i = 0;
}
}
return $data_return;
}

View File

@ -2248,7 +2248,7 @@ function graphic_agentaccess ($id_agent, $width, $height, $period = 0, $return =
'only_image' => $only_image,
'homeurl' => $homeurl,
'menu' => true,
'backgroundColor' => '#f9faf9',
'backgroundColor' => 'transparent',
'type_graph' => 'area',
'font' => $config['fontpath'],
'font_size' => $config['font_size'],

View File

@ -727,10 +727,9 @@ function treeview_printTable($id_agente, $server_data = array(), $no_head = fals
//echo '<div id="id_div" style="height: 10px">&nbsp;</div>';
if ($config["agentaccess"]) {
$access_graph = '<div>hjhhjhhj</div>';
$access_graph = '<div style="width:100%; heigth:200px;">';
$access_graph .= graphic_agentaccess($id_agente, 380, 90, SECONDS_1DAY, true, true);
$access_graph .= '</div><br><br>';
$access_graph = '<div style="width:100%; height:130px;">';
$access_graph .= graphic_agentaccess($id_agente, 380, 120, SECONDS_1DAY, true, true);
$access_graph .= '</div>';
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)');
}
if (!empty($server_data) && is_metaconsole()) {
metaconsole_restore_db();
}
return;
}
?>

View File

@ -417,7 +417,6 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark,
function yFormatter(v, axis) {
format = new Array();
for (i = 0; i < labels_total.length; i++) {
var label = labels_total[i][1];
// var shortLabel = reduceText(label, 25);
@ -427,8 +426,10 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark,
label = reduceText(label, 30);
}
var div_attributes = 'style="font-size:'+font_size+'pt !important;'
+ ' margin: 0; max-width: 150px;'
+ 'margin-right:5px;';
+ ' margin: 0; max-width: 150px;'
+ 'margin-right:5px';
+ 'margin-left: -1.5em';
+ 'text-align: right';
if (label.indexOf("<br>") != -1) {
div_attributes += "min-height: 2.5em;";

View File

@ -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>
<? else: ?>
<?php }else{ ?>
<script type="text/javascript" src="../../include/javascript/fixed-bottom-box.js"></script>
<? endif; ?>
<?php } ?>
<script type="text/javascript">
var treeController = TreeController.getController();