mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Added control for font-size in events graph in agent view
This commit is contained in:
parent
e99183e1f0
commit
b530ff1ee2
@ -806,11 +806,7 @@ function pandoraFlotSlicebar(
|
|||||||
tickFormatter: xFormatter,
|
tickFormatter: xFormatter,
|
||||||
color: "",
|
color: "",
|
||||||
tickSize: intervaltick,
|
tickSize: intervaltick,
|
||||||
tickLength: 0,
|
tickLength: 0
|
||||||
font: {
|
|
||||||
size: font_size + 2,
|
|
||||||
family: font
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
yaxes: [
|
yaxes: [
|
||||||
@ -834,6 +830,10 @@ function pandoraFlotSlicebar(
|
|||||||
|
|
||||||
$.plot($("#" + graph_id), datas, options);
|
$.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) {
|
if (match == null && not_interactive == 0) {
|
||||||
// Events
|
// Events
|
||||||
$("#" + graph_id).bind("plothover", function(event, pos, item) {
|
$("#" + graph_id).bind("plothover", function(event, pos, item) {
|
||||||
|
@ -778,7 +778,7 @@ function flot_slicesbar_graph(
|
|||||||
|
|
||||||
$datacolor = [];
|
$datacolor = [];
|
||||||
|
|
||||||
$fontsize = $config['font_size'];
|
$fontsize = ((int) $config['font_size'] + 2);
|
||||||
$fontpath = $config['fontpath'];
|
$fontpath = $config['fontpath'];
|
||||||
|
|
||||||
$return .= '<div id="extra_'.$graph_id.'" class="slicebar-box-hover-styles invisible" style="font-size:'.$fontsize.'"></div>';
|
$return .= '<div id="extra_'.$graph_id.'" class="slicebar-box-hover-styles invisible" style="font-size:'.$fontsize.'"></div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user