Fix pies in multi views
This commit is contained in:
parent
80730e0bb2
commit
ec38c0c817
|
@ -134,7 +134,9 @@ class Monitoring_HostsController extends Controller
|
|||
{
|
||||
$chart = new InlinePie(array_values($states), $title, $colors);
|
||||
return $chart
|
||||
->setTitle($title);
|
||||
->setSize(75)
|
||||
->setTitle('')
|
||||
->setSparklineClass('sparkline-multi');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -162,9 +162,8 @@ class Monitoring_ServicesController extends Controller
|
|||
{
|
||||
$chart = new InlinePie(array_values($states), $title, $colors);
|
||||
return $chart
|
||||
// ->setLabel(array_map('strtoupper', array_keys($states)))
|
||||
->setSize(50)
|
||||
->setTitle($title)
|
||||
->setSize(75)
|
||||
->setTitle('')
|
||||
->setSparklineClass('sparkline-multi');
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<b><?= sprintf($this->translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?></b>
|
||||
</div>
|
||||
<div class="hbox-item">
|
||||
<?= $this->hostStatesPieChart ?>
|
||||
<?= $this->hostStatesPieChart ?>
|
||||
</div>
|
||||
<div class="hbox-item" style="font-size: 14px">
|
||||
<?php foreach (array_filter($hostStates) as $text => $count) {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<b><?= sprintf($this->translatePlural('Service (%u)', 'Services (%u)', $serviceCount), $serviceCount) ?></b>
|
||||
</div>
|
||||
<div class="hbox-item">
|
||||
<?= $this->serviceStatesPieChart ?>
|
||||
<?= $this->serviceStatesPieChart ?>
|
||||
</div>
|
||||
<div class="hbox-item" style="font-size: 14px">
|
||||
<?php foreach (array_filter($serviceStates) as $text => $count) {
|
||||
|
@ -27,7 +27,7 @@
|
|||
<b><?= sprintf($this->translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?></b>
|
||||
</div>
|
||||
<div class="hbox-item">
|
||||
<?= $this->hostStatesPieChart ?>
|
||||
<?= $this->hostStatesPieChart ?>
|
||||
</div>
|
||||
<div class="hbox-item" style="font-size: 14px">
|
||||
<?php foreach (array_filter($hostStates) as $text => $count) {
|
||||
|
|
Loading…
Reference in New Issue