Skip to content

Commit 521593d

Browse files
authored
Merge pull request #7 from rsalunga29/analytics-overview
Analytics v2 UI Template
2 parents 9cf2c2a + ae6f366 commit 521593d

14 files changed

+618
-33
lines changed

package-lock.json

+276-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"animated-number-vue": "^1.0.0",
1313
"axios": "^0.19.2",
1414
"core-js": "^3.4.4",
15+
"d3": "^5.15.0",
1516
"flag-icon-css": "^3.4.5",
17+
"lodash": "^4.17.15",
18+
"popper.js": "^1.16.1",
1619
"tailwindcss": "^1.1.4",
1720
"vue": "^2.6.10",
1821
"vue-backtotop": "^1.6.1",

src/api/analytics.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import axios, { getData } from '../lib/axios';
2+
3+
export const fetchTrendByDate = (start_date, end_date) => {
4+
return axios.get(`/analytics/trend?start_date=${start_date}&end_date=${end_date}`)
5+
.then(res => getData(res))
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div>
3+
<p class="2xl font-bold">Affected countries map chart here</p>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
props: {
10+
data: {
11+
type: Array,
12+
default: null,
13+
}
14+
},
15+
16+
data () {
17+
return {
18+
chart: null,
19+
}
20+
},
21+
22+
methods: {
23+
renderChart () {
24+
//
25+
}
26+
}
27+
}
28+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div>
3+
<p class="2xl font-bold">Affected region horizontal-stacked bar chart here</p>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
props: {
10+
data: {
11+
type: Array,
12+
default: null,
13+
}
14+
},
15+
16+
data () {
17+
return {
18+
chart: null,
19+
}
20+
},
21+
22+
methods: {
23+
renderChart () {
24+
//
25+
}
26+
}
27+
}
28+
</script>

0 commit comments

Comments
 (0)