Fix charts color being black in Firefox

Hex colors missed the hash prefix
This commit is contained in:
Alexander Klimov 2014-01-31 10:46:09 +01:00
parent f5b6f648a3
commit 4923f8f322

View File

@ -195,25 +195,25 @@ class Monitoring_ChartController extends ActionController
$this->view->chart->drawBars( $this->view->chart->drawBars(
array( array(
'label' => 'Services ok', 'label' => 'Services ok',
'color' => '00ff00', 'color' => '#00ff00',
'stack' => 'stack1', 'stack' => 'stack1',
'data' => $okBars 'data' => $okBars
), ),
array( array(
'label' => 'Services warning', 'label' => 'Services warning',
'color' => 'ffff00', 'color' => '#ffff00',
'stack' => 'stack1', 'stack' => 'stack1',
'data' => $warningBars 'data' => $warningBars
), ),
array( array(
'label' => 'Services critical', 'label' => 'Services critical',
'color' => 'ff0000', 'color' => '#ff0000',
'stack' => 'stack1', 'stack' => 'stack1',
'data' => $critBars 'data' => $critBars
), ),
array( array(
'label' => 'Services unknown', 'label' => 'Services unknown',
'color' => 'E066FF', 'color' => '#E066FF',
'stack' => 'stack1', 'stack' => 'stack1',
'data' => $unknownBars 'data' => $unknownBars
) )
@ -236,19 +236,19 @@ class Monitoring_ChartController extends ActionController
$this->view->chart->drawBars( $this->view->chart->drawBars(
array( array(
'label' => 'Hosts up', 'label' => 'Hosts up',
'color' => '00ff00', 'color' => '#00ff00',
'stack' => 'stack1', 'stack' => 'stack1',
'data' => $upBars 'data' => $upBars
), ),
array( array(
'label' => 'Hosts down', 'label' => 'Hosts down',
'color' => 'ff0000', 'color' => '#ff0000',
'stack' => 'stack1', 'stack' => 'stack1',
'data' => $downBars 'data' => $downBars
), ),
array( array(
'label' => 'Hosts unreachable', 'label' => 'Hosts unreachable',
'color' => 'E066FF', 'color' => '#E066FF',
'stack' => 'stack1', 'stack' => 'stack1',
'data' => $unreachableBars 'data' => $unreachableBars
) )
@ -268,7 +268,7 @@ class Monitoring_ChartController extends ActionController
(int) $query->hosts_unreachable_unhandled, (int) $query->hosts_unreachable_unhandled,
(int) $query->hosts_pending (int) $query->hosts_pending
), ),
'colors' => array( 'ff4444', 'ff0000', 'E066FF', 'f099FF', 'fefefe'), 'colors' => array( '#ff4444', '#ff0000', '#E066FF', '#f099FF', '#fefefe'),
'labels'=> array( 'labels'=> array(
// (int) $query->hosts_up . ' Up Hosts', // (int) $query->hosts_up . ' Up Hosts',
(int) $query->hosts_down_handled . ' Down Hosts (Handled)', (int) $query->hosts_down_handled . ' Down Hosts (Handled)',
@ -288,7 +288,7 @@ class Monitoring_ChartController extends ActionController
(int) $query->services_unknown_handled, (int) $query->services_unknown_handled,
(int) $query->services_pending (int) $query->services_pending
), ),
'colors' => array( 'ff4444', 'ff0000', 'ffff00', 'ffff33', 'E066FF', 'f099FF', 'fefefe'), 'colors' => array('#ff4444', '#ff0000', '#ffff00', '#ffff33', '#E066FF', '#f099FF', '#fefefe'),
'labels'=> array( 'labels'=> array(
// $query->services_ok . ' Up Services', // $query->services_ok . ' Up Services',
$query->services_warning_handled . ' Warning Services (Handled)', $query->services_warning_handled . ' Warning Services (Handled)',