Parcourir la source

starting infographic

Jared Norris il y a 8 ans
Parent
révision
7c7c057be7

+ 5
- 0
VueApp/package-lock.json Voir le fichier

@@ -12872,6 +12872,11 @@
12872 12872
       "resolved": "https://registry.npmjs.org/vue/-/vue-2.5.16.tgz",
12873 12873
       "integrity": "sha512-/ffmsiVuPC8PsWcFkZngdpas19ABm5mh2wA7iDqcltyCTwlgZjHGeJYOXkBMo422iPwIcviOtrTCUpSfXmToLQ=="
12874 12874
     },
12875
+    "vue-google-charts": {
12876
+      "version": "0.2.2",
12877
+      "resolved": "https://registry.npmjs.org/vue-google-charts/-/vue-google-charts-0.2.2.tgz",
12878
+      "integrity": "sha512-FauHM5PdTard2MY65xeIyJtnpcA2IDqj8PN796iJWDs5lytwPF6rdZRWDDLG6Q/UhxxFJ7yoWW88qZ7l7o0KIA=="
12879
+    },
12875 12880
     "vue-hot-reload-api": {
12876 12881
       "version": "2.3.0",
12877 12882
       "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.0.tgz",

+ 1
- 0
VueApp/package.json Voir le fichier

@@ -20,6 +20,7 @@
20 20
     "eslint-plugin-node": "^5.1.0",
21 21
     "eventemitter3": "^2.0.3",
22 22
     "vue": "^2.3.4",
23
+    "vue-google-charts": "^0.2.2",
23 24
     "vue-resource": "^1.3.4",
24 25
     "vue-router": "^2.7.0",
25 26
     "vue2-google-maps": "^0.10.0"

+ 25
- 0
VueApp/src/components/ElevationGraph.vue Voir le fichier

@@ -0,0 +1,25 @@
1
+<template>
2
+
3
+</template>
4
+
5
+<script>
6
+    export default {
7
+        name: "ElevationGraph",
8
+        data () {
9
+          return {
10
+            elevationService: null,
11
+            graphService: null
12
+          }
13
+        },
14
+        methods: {
15
+          getPathElevation (path) {
16
+            this.elevationService = new google.maps.ElevationService() // eslint-disable-line no-undef
17
+
18
+          }
19
+        }
20
+    }
21
+</script>
22
+
23
+<style scoped>
24
+
25
+</style>

+ 3
- 0
VueApp/src/main.js Voir le fichier

@@ -2,6 +2,7 @@
2 2
 // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3 3
 import Vue from 'vue'
4 4
 import * as VueGoogleMaps from 'vue2-google-maps'
5
+import VueGoogleCharts from 'vue-google-charts'
5 6
 import App from './App'
6 7
 import router from './router'
7 8
 
@@ -16,6 +17,8 @@ Vue.use(VueGoogleMaps, {
16 17
   }
17 18
 })
18 19
 
20
+Vue.use(VueGoogleCharts)
21
+
19 22
 new Vue({ // eslint-disable-line no-new
20 23
   el: '#app',
21 24
   router,