set black theme on agent access rate flot
This commit is contained in:
parent
4adb9827cb
commit
a1fceb2e81
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue