Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1 | Rev 15359 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 15153
Línea 287... Línea 287...
287
    const DISPLAY = true;
287
    const DISPLAY = true;
288
    const BORDER = true;
288
    const BORDER = true;
289
    const CHART_AREA = true;
289
    const CHART_AREA = true;
290
    const TICKS = true;
290
    const TICKS = true;
Línea -... Línea 291...
-
 
291
 
-
 
292
                                    const bgColors = [
-
 
293
                                    	'#CFE7FB',
-
 
294
                                    	'#F9D76F',
-
 
295
                                    	'#B9D566',
-
 
296
                                    	'#FFBB90',
291
 
297
                                    	'#66BBBB',
-
 
298
                                    	'#E69090',
-
 
299
                                    	'#BB90BB',
292
    const CHART_COLORS = {
300
                                    	'#9AB67C',
-
 
301
                                    	'#D1CC66',
-
 
302
                                    	'#AFD8F8',
-
 
303
                                    	'#F6BD0F',
293
      red: '#007bff',  //'rgb(255, 99, 132)',
304
                                    	'#8BBA00',
294
      orange: '#0060c7',  //'rgb(255, 159, 64)',
305
                                    	'#FF8E46',
295
      yellow:  '#004fa3', //'rgb(255, 205, 86)',
306
                                    	'#008E8E',
296
      green: '#1c64b0', //'rgb(75, 192, 192)',
307
                                    	'#D64646',
297
      blue: 'rgb(54, 162, 235)',
308
                                    	'#8E468E',
-
 
309
                                    	'#588526',
-
 
310
                                    	'#B3AA00',
298
      purple: 'rgb(153, 102, 255)',
311
                                    	'#008ED6',
-
 
312
                                    	'#9D080D',
299
      grey: 'rgb(201, 203, 207)'
313
                                    	'#A186BE'
Línea 300... Línea 314...
300
    };
314
                                    ];
301
 
315
 
302
    function transparentize(value, opacity) {
316
    function transparentize(value, opacity) {
303
      var alpha = opacity === undefined ? 0.5 : 1 - opacity;
317
      var alpha = opacity === undefined ? 0.5 : 1 - opacity;
Línea 309... Línea 323...
309
    var areaChartData = {
323
    var areaChartData = {
310
      labels  : ['LABEL_GRAPH_STUDENTS_TOTAL', 'LABEL_GRAPH_STUDENTS_STARTED', 'LABEL_GRAPH_STUDENTS_WITHOUT_STARTED'],
324
      labels  : ['LABEL_GRAPH_STUDENTS_TOTAL', 'LABEL_GRAPH_STUDENTS_STARTED', 'LABEL_GRAPH_STUDENTS_WITHOUT_STARTED'],
311
      datasets: [
325
      datasets: [
312
        {
326
        {
313
          label               : '',
327
          label               : '',
314
          backgroundColor: Object.values(CHART_COLORS),
328
          backgroundColor     : backgroundColor: bgColors,
315
          pointRadius         : true,
329
          pointRadius         : true,
316
          data                : [ {$reportStudents['total']},{$reportStudents['started']},{$reportStudents['withoutStarting']} ]
330
          data                : [ {$reportStudents['total']},{$reportStudents['started']},{$reportStudents['withoutStarting']} ]
317
        },
331
        },
318
      ]
332
      ]
Línea 366... Línea 380...
366
    var areaChartData = {
380
    var areaChartData = {
367
      labels  : ['LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES', 'LABEL_GRAPH_STUDENTS_TOTALS' ],
381
      labels  : ['LABEL_GRAPH_STUDENTS_LAST_WEEK_VALUES', 'LABEL_GRAPH_STUDENTS_TOTALS' ],
368
      datasets: [
382
      datasets: [
369
        {
383
        {
370
          label             : '',
384
          label             : '',
371
          backgroundColor   : [
385
          backgroundColor   : bgColors,
372
                CHART_COLORS.red,
-
 
373
                CHART_COLORS.blue
-
 
374
            ],
-
 
375
          pointRadius       : true,
386
          pointRadius       : true,
376
          data              : [{$reportsLastWeek['general'][ 'value']}, {$reportsLastWeek['general'][ 'total']} ]
387
          data              : [{$reportsLastWeek['general'][ 'value']}, {$reportsLastWeek['general'][ 'total']} ]
377
        },
388
        },
378
      ]
389
      ]