Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16052 Rev 16053
Línea 39... Línea 39...
39
                    borderColor: '#E69090',
39
                    borderColor: '#E69090',
40
                    borderWidth: 1,
40
                    borderWidth: 1,
41
                    fill: false,
41
                    fill: false,
42
                    data : []
42
                    data : []
43
              	},
43
              	},
44
                {
44
                // {
45
                	label : 'LABEL_CHART_CLIMATE_ON_YOUR_ORGANIZATION',
45
                // 	label : 'LABEL_CHART_CLIMATE_ON_YOUR_ORGANIZATION',
46
                    backgroundColor: '#66BBBB',
46
                //     backgroundColor: '#66BBBB',
47
         			borderColor: '#66BBBB',
47
         		// 	borderColor: '#66BBBB',
48
         			borderWidth: 1,
48
         		// 	borderWidth: 1,
49
                    fill: false,
49
                //     fill: false,
50
                    data : []
50
                //     data : []
51
                },
51
                // },
52
            ]
52
            ]
53
        },
53
        },
54
        options: {
54
        options: {
55
            tooltips: {
55
            tooltips: {
56
                mode: 'index',
56
                mode: 'index',
Línea 78... Línea 78...
78
                'endDate' : endDate
78
                'endDate' : endDate
79
            },
79
            },
80
        }).done(function(response) {
80
        }).done(function(response) {
81
            if(response['success']) {
81
            if(response['success']) {
82
                chartProgressByDay.data.datasets[0].data = Object.values(response['data']);
82
                chartProgressByDay.data.datasets[0].data = Object.values(response['data']);
83
                chartProgressByDay.data.datasets[1].data = Object.values(response['data']);
83
                //chartProgressByDay.data.datasets[1].data = Object.values(response['data']);
84
                chartProgressByDay.update();
84
                chartProgressByDay.update();
85
                console.log(chartProgressByDay.data.datasets[0].data);
85
                console.log(chartProgressByDay.data.datasets[0].data);
86
            }else{
86
            }else{
87
                $.fn.showError(response['data']);
87
                $.fn.showError(response['data']);
88
            }
88
            }