asArray();
        $result = '';
        $table = array(
            '
' . implode(
                ' | ',
                array('', t('Label'), t('Value'), t('Min'), t('Max'), t('Warning'), t('Critical'))
            ) . ''
        );
        foreach ($pieChartData as $perfdata) {
            if ($compact && $perfdata->isVisualizable()) {
                $result .= $perfdata->asInlinePie($color)->render();
            } else {
                $row = ' | ';
                $row .= '| ';
                if ($perfdata->isVisualizable()) {
                    $row .= $perfdata->asInlinePie($color)->render() . ' ';
                }
                $row .= '';
                if (!$compact) {
                    foreach ($perfdata->toArray() as $value) {
                        if ($value === '') {
                            $value = '-';
                        }
                        $row .= ' | ' . (string)$value  . '';
                    }
                }
                $row .= ' | 
';
                $table[] = $row;
            }
        }
        if ($compact) {
            return $result;
        } else {
            $pieCharts = empty($table) ? '' : '' . implode("\n", $table) . '
';
            return $pieCharts;
        }
    }
}