refactor: update examples

This commit is contained in:
Łukasz Holeczek
2021-08-30 00:44:20 +02:00
parent e3dd33a2f8
commit 0f2cb6c1db
40 changed files with 334 additions and 754 deletions
+21 -10
View File
@@ -1,7 +1,5 @@
<template>
<CChartBar
:data="defaultData"
/>
<CChartBar :data="defaultData" />
</template>
<script>
@@ -10,18 +8,31 @@ export default {
name: 'CChartBarExample',
components: { CChartBar },
computed: {
defaultData () {
defaultData() {
return {
labels: ['months'],
labels: [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December',
],
datasets: [
{
label: 'GitHub Commits',
backgroundColor: '#f87979',
data: [40, 20, 12, 39, 10, 40, 39, 80, 40, 20, 12, 12]
}
]
data: [40, 20, 12, 39, 10, 40, 39, 80, 40, 20, 12, 12],
},
],
}
}
}
},
},
}
</script>