diff --git a/library/Icinga/Web/Widget/Chart/InlinePie.php b/library/Icinga/Web/Widget/Chart/InlinePie.php index c219ab4d7..73590c1c2 100644 --- a/library/Icinga/Web/Widget/Chart/InlinePie.php +++ b/library/Icinga/Web/Widget/Chart/InlinePie.php @@ -32,6 +32,8 @@ namespace Icinga\Web\Widget\Chart; use Icinga\Web\Widget\AbstractWidget; use Icinga\Web\Url; +use Icinga\Util\Format; +use Icinga\Logger\Logger; /** * A SVG-PieChart intended to be displayed as a small icon next to labels, to offer a better visualization of the @@ -44,14 +46,32 @@ use Icinga\Web\Url; */ class InlinePie extends AbstractWidget { + const NUMBER_FORMAT_TIME = 'time'; + const NUMBER_FORMAT_BYTES = 'bytes'; + const NUMBER_FORMAT_RATIO = 'ratio'; + /** + * The template string used for rendering this widget * The template string used for rendering this widget * * @var string */ private $template =<<<'EOD' - +