Merge branch 'ent-7262-fondo-de-la-grafica-de-acceso-no-es-transparente-casca-en-blactheme' into 'develop'

set black theme on agent access rate flot

See merge request artica/pandorafms!3997
This commit is contained in:
Daniel Rodriguez 2021-04-09 09:29:26 +00:00
commit 040fdbae01
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.