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
+18 -12
View File
@@ -1,7 +1,5 @@
<template>
<CChartPolarArea
:data="defaultData"
/>
<CChartPolarArea :data="defaultData" />
</template>
<script>
@@ -10,9 +8,17 @@ export default {
name: 'CChartPolarAreaExample',
components: { CChartPolarArea },
computed: {
defaultData () {
defaultData() {
return {
labels: ['Eating', 'Drinking', 'Sleeping', 'Designing', 'Coding', 'Cycling', 'Running'],
labels: [
'Eating',
'Drinking',
'Sleeping',
'Designing',
'Coding',
'Cycling',
'Running',
],
datasets: [
{
label: 'My First dataset',
@@ -21,7 +27,7 @@ export default {
pointBorderColor: '#fff',
pointHoverBackgroundColor: 'rgba(179,181,198,1)',
pointHoverBorderColor: 'rgba(179,181,198,1)',
data: [65, 59, 90, 81, 56, 55, 40]
data: [65, 59, 90, 81, 56, 55, 40],
},
{
label: 'My Second dataset',
@@ -30,14 +36,14 @@ export default {
pointBorderColor: '#fff',
pointHoverBackgroundColor: 'rgba(255,99,132,1)',
pointHoverBorderColor: 'rgba(255,99,132,1)',
data: [28, 48, 40, 19, 96, 27, 100]
}
data: [28, 48, 40, 19, 96, 27, 100],
},
],
options: {
aspectRatio: 1.5
}
aspectRatio: 1.5,
},
}
},
}
},
}
</script>
</script>