From fbec09c99c0c6c714b6e8ebd1599a75563e1ed32 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 27 May 2021 11:09:09 +0200 Subject: [PATCH] cleaning --- public/ploty.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/public/ploty.html b/public/ploty.html index 5f293f87..8d09c2c5 100644 --- a/public/ploty.html +++ b/public/ploty.html @@ -23,14 +23,6 @@ accounts: () => API.fetch( "/api/ledger/accounts" ) } - const Utils = { - readable_date: date => { - const months = { 0: 'Janvier', 1: 'Février', 2: 'Mars', 3: 'Avril', 4: 'Mai', 5: 'Juin', 6: 'Juillet', 7: 'Août', 8: 'Septembre', 9: 'Octobre', 10: 'Novembre', 11: 'Décembre' }; - - return `${months[ date.getMonth() ]} ${date.getFullYear()}`; - } - }; - const Controls = { accounts_list: { init: async ( ui_id ) => { @@ -115,7 +107,6 @@ }; Controls.main_graph.set = async ( accounts ) => { - console.log(accounts) if (accounts.length < 1) return; @@ -128,7 +119,7 @@ return { name: act, type: "bar", - x: v.map( reg => new Date( reg.date ) ), //Utils.readable_date( new Date( reg.date ) ) ), + x: v.map( reg => new Date( reg.date ) ), y: v.map( reg => reg.amount) }; } ),