Improve layout in AlertSummary

Use brighter color for notifications, render hours more readable.
This commit is contained in:
Matthias Jentsch 2015-01-19 15:14:09 +01:00
parent ba1007465a
commit 80fc2a32db

View File

@ -429,11 +429,10 @@ class Monitoring_AlertsummaryController extends Controller
$item[1] = $item[1]/60/60; $item[1] = $item[1]/60/60;
} }
$gridChart->drawBars( $gridChart->drawBars(
array( array(
'label' => $this->translate('Notifications'), 'label' => $this->translate('Notifications'),
'color' => '#049baf', 'color' => '#07C0D9',
'data' => $notifications, 'data' => $notifications,
'showPoints' => true 'showPoints' => true
) )
@ -478,7 +477,7 @@ class Monitoring_AlertsummaryController extends Controller
$gridChart->drawBars( $gridChart->drawBars(
array( array(
'label' => $this->translate('Notifications'), 'label' => $this->translate('Notifications'),
'color' => '#049baf', 'color' => '#07C0D9',
'data' => $this->notificationData, 'data' => $this->notificationData,
'showPoints' => true 'showPoints' => true
) )
@ -554,7 +553,7 @@ class Monitoring_AlertsummaryController extends Controller
{ {
$format = ''; $format = '';
if ($interval === '1d') { if ($interval === '1d') {
$format = '%H:00:00'; $format = '%H:00';
} elseif ($interval === '1w') { } elseif ($interval === '1w') {
$format = '%Y-%m-%d'; $format = '%Y-%m-%d';
} elseif ($interval === '1m') { } elseif ($interval === '1m') {