refactor: update example views

This commit is contained in:
Łukasz Holeczek
2021-08-30 14:47:25 +02:00
parent a759550fb5
commit 1f5cad7f05
42 changed files with 2501 additions and 2112 deletions
+8 -8
View File
@@ -1,5 +1,5 @@
<template>
<CChartLine :data="defaultData"/>
<CChartLine :data="defaultData" />
</template>
<script>
@@ -8,23 +8,23 @@ export default {
name: 'CChartLineExample',
components: { CChartLine },
computed: {
defaultData () {
defaultData() {
return {
labels: ['months', 'a', 'b', 'c', 'd'],
datasets: [
{
label: 'Data One',
backgroundColor: 'rgb(228,102,81,0.9)',
data: [30, 39, 10, 50, 30, 70, 35]
data: [30, 39, 10, 50, 30, 70, 35],
},
{
label: 'Data Two',
backgroundColor: 'rgb(0,216,255,0.9)',
data: [39, 80, 40, 35, 40, 20, 45]
}
]
data: [39, 80, 40, 35, 40, 20, 45],
},
],
}
}
}
},
},
}
</script>