From 2feb546edf14a2a9dc395b73c1d4faf8014eabba Mon Sep 17 00:00:00 2001 From: Francis Date: Tue, 7 May 2019 15:50:16 +0200 Subject: [PATCH] add highcharts for scatter plot --- package.json | 2 + src/main.js | 2 + src/views/Home.vue | 233 +++++++++++++++++++++++++++++++++++++-------- 3 files changed, 195 insertions(+), 42 deletions(-) diff --git a/package.json b/package.json index 61e6466..517ed55 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "dependencies": { "axios": "^0.18.0", "core-js": "^2.6.5", + "highcharts": "^7.1.1", "vue": "^2.6.10", + "vue-highcharts": "^0.1.0", "vue-router": "^3.0.3", "vuex": "^3.0.1" }, diff --git a/src/main.js b/src/main.js index f253456..c5e1ada 100644 --- a/src/main.js +++ b/src/main.js @@ -2,7 +2,9 @@ import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' +import VueHighcharts from 'vue-highcharts'; +Vue.use(VueHighcharts); Vue.config.productionTip = false new Vue({ diff --git a/src/views/Home.vue b/src/views/Home.vue index 0c34d9b..5c2ec01 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -6,30 +6,41 @@
{{wpm}} wpm
{{accuracy}} accuracy
- {{ statsPerKey }} + {{worstAccuracy}}
-
- {{ k }} : {{ v.sum / v.n }} +
+