summaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-04 16:00:09 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-04 16:00:09 +0000
commitaec63d96ab5ea8dee9946f3f98130406981fed28 (patch)
tree6e80d84bd77378c1b4f686c0cd5a89ba0e3d17bc /lib.php
parentf2122a8cd8500bb775b04971b48c6faaa1af2e0a (diff)
downloadpkgsubmit-aec63d96ab5ea8dee9946f3f98130406981fed28.tar
pkgsubmit-aec63d96ab5ea8dee9946f3f98130406981fed28.tar.gz
pkgsubmit-aec63d96ab5ea8dee9946f3f98130406981fed28.tar.bz2
pkgsubmit-aec63d96ab5ea8dee9946f3f98130406981fed28.tar.xz
pkgsubmit-aec63d96ab5ea8dee9946f3f98130406981fed28.zip
adjust charts colors/sizes
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php15
1 files changed, 9 insertions, 6 deletions
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'
};