From e5e1288cd50da20c100860b674c2fc84e9a919f2 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 31 May 2024 13:54:08 +0800 Subject: [PATCH] 1 --- resources/views/admin/home.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/admin/home.blade.php b/resources/views/admin/home.blade.php index 3834697..9aa46c2 100644 --- a/resources/views/admin/home.blade.php +++ b/resources/views/admin/home.blade.php @@ -385,7 +385,7 @@ var pieWidth = (100 - (pieColumns - 1) * (gap / pieColumns)) / pieColumns; var pieHeight = (100 - (pieRows - 1) * (gap / pieRows)) / pieRows; var option = { - title: lies.map(function (item) { + title: lies.map(function (item,idx) { var columnIndex = idx % pieColumns; // 当前饼图在其行中的列索引 var rowIndex = Math.floor(idx / pieColumns); // 当前饼图的行索引 var left = columnIndex * (pieWidth + gap / pieColumns); // 计算left位置