From 753e06774d5621635ac7b7870f5f06f6a0628dc8 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Fri, 31 Dec 2021 16:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A6=96=E9=A1=B5=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Metrics/Users.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/Admin/Metrics/Users.php b/app/Admin/Metrics/Users.php index 53c34465..f832d023 100644 --- a/app/Admin/Metrics/Users.php +++ b/app/Admin/Metrics/Users.php @@ -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'=>'会员总数', + ], + ], + ], + ], + ], ]); }