[ 'x' => [ 'grid' => [ 'display' => false, ], 'ticks' => [ 'display' => false, ], ], 'y' => [ 'grid' => [ 'display' => false, ], 'ticks' => [ 'display' => false, ], ], ], ]; protected function getData(): array { /** @var Node $node */ $node = $this->record; $total = ($node->statistics()['disk_total'] ?? 0) / 1024 / 1024 / 1024; $used = ($node->statistics()['disk_used'] ?? 0) / 1024 / 1024 / 1024; $unused = $total - $used; return [ 'datasets' => [ [ 'data' => [$used, $unused], 'backgroundColor' => [ 'rgb(255, 99, 132)', 'rgb(54, 162, 235)', 'rgb(255, 205, 86)', ], ], ], 'labels' => ['Used', 'Unused'], ]; } protected function getType(): string { return 'pie'; } }