From 2288fabd962335b9be4a58f43708e2c72354a8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Tue, 26 Jan 2021 20:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E5=91=8A=E4=B8=AD?= =?UTF-8?q?=E5=AD=A6=E7=A7=91=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chengji/view/bjtongji/biaoge.html | 7 ++++++- app/tools/model/OneStudentChengji.php | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/chengji/view/bjtongji/biaoge.html b/app/chengji/view/bjtongji/biaoge.html index 17341c97..ea90f736 100755 --- a/app/chengji/view/bjtongji/biaoge.html +++ b/app/chengji/view/bjtongji/biaoge.html @@ -327,7 +327,12 @@ dataset: { source:data.data }, - xAxis: {type: 'category'}, + xAxis: { + type: 'category', + axisLabel: { + rotate:30 + } + }, yAxis: {}, dataZoom: [ { diff --git a/app/tools/model/OneStudentChengji.php b/app/tools/model/OneStudentChengji.php index 9176430b..52e82734 100755 --- a/app/tools/model/OneStudentChengji.php +++ b/app/tools/model/OneStudentChengji.php @@ -523,6 +523,7 @@ class OneStudentChengji extends BaseModel 'xAxis' => [ 'type' => 'value' ,'data' => '' + ,'scale' => true ] ,'yAxis' => [ 'type' => 'category' @@ -535,7 +536,7 @@ class OneStudentChengji extends BaseModel ,'type' => 'bar' ,'label' => [ 'show' => true - ,'position'=>'insideRight' // 在上方显示 + ,'position'=>'right' // 在上方显示 ,'textStyle' => [ 'color' => 'black', 'fontSize' => 12