6
0
Fork 0

调整首页会员统计

release
vine_liutk 2021-12-31 16:45:59 +08:00
parent 6eed51596f
commit 753e06774d
1 changed files with 14 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class Users extends Donut
$this->chartHeight(300);
$this->chartOption('chart.width', '300');
$this->chartOption('dataLabels.enabled', true);
// $this->chartOption('plotOptions.pie.donut.total.show', true);
$this->chartMarginBottom(50);
$this->chart->style('float: none;');
$color = Admin::color();
@ -74,6 +75,19 @@ class Users extends Donut
// dd($data);
return $this->chart([
'series' => array_values($data),
'plotOptions' => [
'pie' => [
'donut' => [
'labels'=>[
'show'=>'true',
'total' => [
'show' => true,
'label'=>'会员总数',
],
],
],
],
],
]);
}