From aec63d96ab5ea8dee9946f3f98130406981fed28 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 4 Sep 2012 16:00:09 +0000 Subject: adjust charts colors/sizes --- lib.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'lib.php') diff --git a/lib.php b/lib.php index b6d6750..6e29e9e 100644 --- a/lib.php +++ b/lib.php @@ -281,9 +281,12 @@ function draw_status_chart() { data.addColumn('number', 'Packages'); data.addRows([{$rows}]); - var options = {'title':'Packages status', - 'width':300, - 'height':300}; + var options = { + 'title':'Packages status', + 'width':300, + 'height':300, + 'colors': ['white', 'yellow', 'blue', 'green', 'orange', 'red'] + }; var chart = new google.visualization.PieChart(document.getElementById('{$id}')); chart.draw(data, options); @@ -325,8 +328,8 @@ function draw_buildtime_chart() { var options = { title: 'How long are most builds?', hAxis: {title: 'Time'}, - 'width':500, - 'height':200 + 'width':700, + 'height':300 }; var chart = new google.visualization.ColumnChart(document.getElementById('{$id}')); chart.draw(data, options); @@ -349,7 +352,7 @@ function draw_buildschedule_chart() { var options = { title: 'When did builds happen? (CET)', hAxis: {title: 'Hours'}, - 'width':800, + 'width':700, 'height':200, 'curveType': 'function' }; -- cgit v1.2.1