Skip to content

Commit b9d4644

Browse files
committed
added more colors to the dashboard chart for issue #94
1 parent fba4089 commit b9d4644

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

js/src/dashboard.js

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,54 @@ var Chart = require("chart.js");
2525
getData();
2626
function getData(){
2727
var baseUrl = OC.generateUrl('/apps/timetracker/ajax/report?name=&from='+start.unix()+'&to='+end.unix()+'&group1='+group1+'&group2='+group2+'&timegroup='+group3+'&filterProjectId='+filterProjectId+'&filterClientId='+filterClientId);
28-
var default_colors = ['#3366CC','#DC3912','#FF9900','#109618','#990099','#3B3EAC','#0099C6','#DD4477','#66AA00','#B82E2E','#316395','#994499','#22AA99','#AAAA11','#6633CC','#E67300','#8B0707','#329262','#5574A6','#3B3EAC']
28+
var default_colors = [
29+
'#3366CC',
30+
'#DC3912',
31+
'#FF9900',
32+
'#109618',
33+
'#990099',
34+
'#3B3EAC',
35+
'#0099C6',
36+
'#DD4477',
37+
'#66AA00',
38+
'#B82E2E',
39+
'#316395',
40+
'#994499',
41+
'#22AA99',
42+
'#AAAA11',
43+
'#6633CC',
44+
'#E67300',
45+
'#8B0707',
46+
'#329262',
47+
'#5574A6',
48+
'#3B3EAC',
49+
'#C71585',
50+
'#006400',
51+
'#4B0082',
52+
'#8B0000',
53+
'#FF4500',
54+
'#BDB76B',
55+
'#008080',
56+
'#FFE4E1',
57+
'#800000',
58+
'#000080',
59+
'#2F4F4F',
60+
'#FF1493',
61+
'#008000',
62+
'#800080',
63+
'#FF0000',
64+
'#FF8C00',
65+
'#20B2AA',
66+
'#FAF0E6',
67+
'#FFD700',
68+
'#A52A2A',
69+
'#708090',
70+
'#DB7093',
71+
'#808000',
72+
'#9400D3',
73+
'#FFDAB9',
74+
'#7FFFD4'
75+
]
2976
$.ajax({
3077
/*headers: {requesttoken: oc_requesttoken},*/
3178
url: baseUrl,

0 commit comments

Comments
 (0)