调整首页会员统计
parent
6eed51596f
commit
753e06774d
|
|
@ -23,6 +23,7 @@ class Users extends Donut
|
||||||
$this->chartHeight(300);
|
$this->chartHeight(300);
|
||||||
$this->chartOption('chart.width', '300');
|
$this->chartOption('chart.width', '300');
|
||||||
$this->chartOption('dataLabels.enabled', true);
|
$this->chartOption('dataLabels.enabled', true);
|
||||||
|
// $this->chartOption('plotOptions.pie.donut.total.show', true);
|
||||||
$this->chartMarginBottom(50);
|
$this->chartMarginBottom(50);
|
||||||
$this->chart->style('float: none;');
|
$this->chart->style('float: none;');
|
||||||
$color = Admin::color();
|
$color = Admin::color();
|
||||||
|
|
@ -74,6 +75,19 @@ class Users extends Donut
|
||||||
// dd($data);
|
// dd($data);
|
||||||
return $this->chart([
|
return $this->chart([
|
||||||
'series' => array_values($data),
|
'series' => array_values($data),
|
||||||
|
'plotOptions' => [
|
||||||
|
'pie' => [
|
||||||
|
'donut' => [
|
||||||
|
'labels'=>[
|
||||||
|
'show'=>'true',
|
||||||
|
'total' => [
|
||||||
|
'show' => true,
|
||||||
|
'label'=>'会员总数',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue