Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16220 Rev 16221
Línea 37... Línea 37...
37
                	label : 'Agregados por dias',
37
                	label : 'Agregados por dias',
38
         			backgroundColor: '#E69090',
38
         			backgroundColor: '#E69090',
39
                    borderColor: '#E69090',
39
                    borderColor: '#E69090',
40
                    borderWidth: 1,
40
                    borderWidth: 1,
41
                    fill: false,
41
                    fill: false,
42
                    data : [[1, 5], [2, 3]]
42
                    data : []
43
              	},
43
              	},
44
                // {
-
 
45
                //  	label : 'Agregados por dias',
-
 
46
                //      backgroundColor: '#66BBBB',
-
 
47
         		//  	borderColor: '#66BBBB',
-
 
48
         		//  	borderWidth: 1,
-
 
49
                //      fill: false,
-
 
50
                //      data : [2, 3]
-
 
51
                //  },
-
 
52
            ]
44
            ]
53
        },
45
        },
54
        options: {
46
        options: {
55
            tooltips: {
47
            tooltips: {
56
                mode: 'index',
48
                mode: 'index',
Línea 76... Línea 68...
76
            'data'      :  {
68
            'data'      :  {
77
                'startDate' : startDate,
69
                'startDate' : startDate,
78
                'endDate' : endDate
70
                'endDate' : endDate
79
            },
71
            },
80
        }).done(function(response) {
72
        }).done(function(response) {
81
            if(response['success']) {let arregloDeClavesYValores = Object.entries(response['data']);
73
            if(response['success']) {
82
                let arrayVar = [ "09/01/2023", "15/05/2023" ];
-
 
83
                chartProgressByDay.data.labels = response.data.added_on;
74
                chartProgressByDay.data.labels = response.data.added_on;
84
                chartProgressByDay.data.datasets[0].data = response.data.total_by_day;
75
                chartProgressByDay.data.datasets[0].data = response.data.total_by_day;
85
                //chartProgressByDay.data.datasets[1].data = response['data']['total_by_day'];
-
 
86
                
-
 
87
                chartProgressByDay.update();
76
                chartProgressByDay.update();
88
                console.log(response.data.added_on);
-
 
89
                console.log(response['data']['total_by_day']);
-
 
-
 
77
                
90
            }else{
78
            }else{
91
                $.fn.showError(response);
79
                $.fn.showError(response);
92
            }
80
            }
93
        }).fail(function( jqXHR, textStatus, errorThrown) {
81
        }).fail(function( jqXHR, textStatus, errorThrown) {
94
            $.fn.showError(textStatus);
82
            $.fn.showError(textStatus);