From 2dd1bf7ec562e12a209cc5ce7c07636a0c981e15 Mon Sep 17 00:00:00 2001 From: Ilkka Huotari Date: Thu, 21 Mar 2024 03:43:41 +0200 Subject: [PATCH] Update index.js --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index e754eff..74644c1 100644 --- a/src/index.js +++ b/src/index.js @@ -29,6 +29,7 @@ global.d3.selectAll('.vars').on('change', input_change); global.d3.selectAll('#title').on('keypress', title_keyup); global.d3.selectAll('label span').on('click', get_value_manually); + window.addEventListener('resize', draw); show_storage(); calculate(); set_intial_values(); @@ -149,8 +150,6 @@ total: sum(initial) }] - console.log(data); - data2 = [{ x: Math.ceil(new Date(vars.start_year, 0, 2).getTime() / 1000), y: data[0]['total']