From c28c947abce877b06eacba94187abeada6630d76 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 10 May 2016 17:07:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=8A=A8=E6=80=81=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=9C=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/_rep_static.html.erb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/projects/_rep_static.html.erb b/app/views/projects/_rep_static.html.erb index 9ebf68d0c..d687c8f7e 100644 --- a/app/views/projects/_rep_static.html.erb +++ b/app/views/projects/_rep_static.html.erb @@ -20,6 +20,11 @@ // text: 'Source: WorldClimate.com' }, xAxis: { + title: { + text: '作者', + x: -23, //center设置标题的位置 + y: 6 + }, // categories: ["Jan", "Jan", "Jan", 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] categories: <%= raw(@a_uname_code) %> }, @@ -70,7 +75,7 @@ lineWidth: 1.5 }, { - name: '改动或增加', + name: '改动或增加', color: '#5b6b76', data: <%= @a_commits_add %>, dataLabels: { @@ -122,6 +127,11 @@ // text: 'Source: WorldClimate.com' }, xAxis: { + title: { + text: '作者', + x: -20, //center设置标题的位置 + y: 6 + }, // categories: ["Jan", "Jan", "Jan", 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] categories: <%= raw(@a_uname) %> },