Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16191 Rev 16192
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 : '',
45
                	label : '',
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 79... Línea 79...
79
            },
79
            },
80
        }).done(function(response) {
80
        }).done(function(response) {
81
            if(response['success']) {let arregloDeClavesYValores = Object.entries(response['data']);
81
            if(response['success']) {let arregloDeClavesYValores = Object.entries(response['data']);
82
                chartProgressByDay.data.label = response.data.total_by_day;
82
                chartProgressByDay.data.label = response.data.total_by_day;
83
                chartProgressByDay.data.datasets[0].data = response.data;
83
                chartProgressByDay.data.datasets[0].data = response.data;
84
                //chartProgressByDay.data.datasets[1].data = response['data']['total_by_day'];
84
                chartProgressByDay.data.datasets[1].data = response['data']['total_by_day'];
Línea 85... Línea 85...
85
                
85
                
86
                chartProgressByDay.update();
86
                chartProgressByDay.update();
87
                console.log(response.data.added_on);
87
                console.log(response);
88
            }else{
88
            }else{
89
                $.fn.showError(response);
89
                $.fn.showError(response);
90
            }
90
            }
91
        }).fail(function( jqXHR, textStatus, errorThrown) {
91
        }).fail(function( jqXHR, textStatus, errorThrown) {