Merge branch 'ent-7731-graficas-tamaño-fuente-diferente' into 'develop'

Added control for font-size in events graph in agent view

Closes pandora_enterprise#7731

See merge request artica/pandorafms!4236
This commit is contained in:
Daniel Rodriguez 2021-06-29 10:03:06 +00:00
commit 04709fb16c
2 changed files with 6 additions and 6 deletions

View File

@ -806,11 +806,7 @@ function pandoraFlotSlicebar(
tickFormatter: xFormatter,
color: "",
tickSize: intervaltick,
tickLength: 0,
font: {
size: font_size + 2,
family: font
}
tickLength: 0
}
],
yaxes: [
@ -834,6 +830,10 @@ function pandoraFlotSlicebar(
$.plot($("#" + graph_id), datas, options);
// Added for correct handle of the font size.
// xaxes-yaxes object not handle font-size properly.
$(".flot-x-axis .flot-tick-label").css("font-size", font_size);
if (match == null && not_interactive == 0) {
// Events
$("#" + graph_id).bind("plothover", function(event, pos, item) {

View File

@ -778,7 +778,7 @@ function flot_slicesbar_graph(
$datacolor = [];
$fontsize = $config['font_size'];
$fontsize = ((int) $config['font_size'] + 2);
$fontpath = $config['fontpath'];
$return .= '<div id="extra_'.$graph_id.'" class="slicebar-box-hover-styles invisible" style="font-size:'.$fontsize.'"></div>';