set black theme on agent access rate flot

This commit is contained in:
Marcos Alconada 2021-04-09 09:29:26 +00:00 committed by Daniel Rodriguez
parent 4adb9827cb
commit a1fceb2e81
3 changed files with 22 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -563,6 +563,7 @@ function showTooltip(x, y, color, contents) {
"font-size": "9px",
"border-radius": "5px",
"background-color": "#fff",
color: "#111",
"font-family": "Verdana, Arial, Helvetica, Tahoma, sans-serif",
opacity: 0.9
})

View File

@ -670,6 +670,15 @@ function flot_vcolumn_chart(array $options)
// Add id to options.
$options['graphId'] = $graphId;
// If pandora_black theme its enabled then change grid colors.
if ($config['style'] === 'pandora_black') {
$options['grid']['backgroundColor']['colors'][0] = 'transparent';
$options['grid']['backgroundColor']['colors'][1] = 'transparent';
$options['y']['color'] = 'transparent';
$options['x']['color'] = 'transparent';
}
$settings = base64_encode(json_encode($options));
// Javascript code.