Skip to content
Extraits de code Groupes Projets
Valider 951cdf2e rédigé par Benjamin's avatar Benjamin
Parcourir les fichiers

label chart % -> K€

parent adcca7c6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -131,10 +131,10 @@ odoo.define('lefilament_tdb.dashboard_year', function (require) {
this.ctx = this.$el.find('#target')[0].getContext('2d');
var dataset_stacked = [
{ label: 'Facturé', data: [this.pfact], backgroundColor: '#8ED8A2', },
{ label: 'Commandes', data: [this.pcomm], backgroundColor: '#F6DCA2', },
{ label: 'Gagné', data: [this.ppipe_win], backgroundColor: '#F6CCA2', },
{ label: 'Pipe', data: [this.ppipe_to_win], backgroundColor: '#F6ACA2', },
{ label: 'Facturé', data: [this.pfact2], backgroundColor: '#8ED8A2', },
{ label: 'Commandes', data: [this.pcomm2], backgroundColor: '#F6DCA2', },
{ label: 'Gagné', data: [this.ppipe2_win], backgroundColor: '#F6CCA2', },
{ label: 'Pipe', data: [this.ppipe2_to_win], backgroundColor: '#F6ACA2', },
{ label: 'To Do', data: [this.ptarg], backgroundColor: '#eee', }];
var label = 'Année ' + moment(Date.now()).format('YYYY');
......@@ -170,6 +170,11 @@ odoo.define('lefilament_tdb.dashboard_year', function (require) {
titleFontStyle: 'normal',
titleFontColor: '#999',
bodyFontColor: '#777',
callbacks: {
label: function(tooltipItems, data) {
return (tooltipItems.xLabel / 1000).toLocaleString('fr', { maximumFractionDigits: 2 }) + ' K€';
}
}
},
responsive: true,
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter