Skip to content

Commit 31c6140

Browse files
committed
Refactor ApiResponse.vue component to remove unnecessary data object
1 parent f5d739b commit 31c6140

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/components/ApiResponse.vue

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,6 @@
1919
2020
export default defineComponent({
2121
name: 'ApiResponse',
22-
data () {
23-
return {
24-
data : {
25-
labels: ['VueJs', 'EmberJs', 'ReactJs', 'AngularJs'],
26-
datasets: [
27-
{
28-
backgroundColor: ['#41B883', '#E46651', '#00D8FF', '#DD1B16'],
29-
data: [40, 20, 80, 10]
30-
}
31-
]
32-
},
33-
options : {
34-
responsive: true,
35-
maintainAspectRatio: false
36-
}
37-
}
38-
},
3922
setup() {
4023
const metrics = ref<Metrics[]>([]);
4124

0 commit comments

Comments
 (0)