From 189c8cd2f760c2cbda0f9e2dd6ba1a2a483340d5 Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Sun, 21 May 2023 12:35:37 +0200 Subject: [PATCH] Added working stock price over time comparison chart --- stockingly-frontend/package.json | 2 + stockingly-frontend/src/views/Comparison.vue | 140 ++++++++++++++++--- stockingly-frontend/yarn.lock | 10 ++ 3 files changed, 131 insertions(+), 21 deletions(-) diff --git a/stockingly-frontend/package.json b/stockingly-frontend/package.json index 7ce9a15..f664f9c 100644 --- a/stockingly-frontend/package.json +++ b/stockingly-frontend/package.json @@ -15,6 +15,7 @@ "core-js": "^3.29.0", "debounce": "^1.2.1", "fuse.js": "^6.6.2", + "luxon": "^3.3.0", "roboto-fontface": "*", "round-to": "^6.0.0", "vue": "^3.2.0", @@ -27,6 +28,7 @@ "devDependencies": { "@babel/types": "^7.21.4", "@types/debounce": "^1.2.1", + "@types/luxon": "^3.3.0", "@types/node": "^18.15.0", "@types/webfontloader": "^1.6.35", "@vitejs/plugin-vue": "^4.0.0", diff --git a/stockingly-frontend/src/views/Comparison.vue b/stockingly-frontend/src/views/Comparison.vue index b88b4cf..caaa880 100644 --- a/stockingly-frontend/src/views/Comparison.vue +++ b/stockingly-frontend/src/views/Comparison.vue @@ -8,43 +8,141 @@ -

Stock price over time

- + + + + + Stock price over time + + + + 1M + 3M + 6M + 1Y + 5Y + Max + + + + + + +
+ +