chore: delete obsolete files, packages, imports and polyfills

This commit is contained in:
woothu
2019-06-18 12:05:18 +02:00
parent 5ea5ac4e5b
commit 9aae4b3e90
5 changed files with 6 additions and 111 deletions
-69
View File
@@ -1,69 +0,0 @@
<template>
<CChartLine
:datasets="defaultDatasets"
:options="defaultOptions"
:labels="['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']"
/>
</template>
<script>
import { CChartLine } from '@coreui/coreui-vue-chartjs'
import { customTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
import { getColor } from '@coreui/coreui/dist/js/coreui-utilities'
export default {
components: {
CChartLine
},
props: ['data', 'borderColor'],
computed: {
defaultDatasets () {
return [
{
backgroundColor: 'transparent',
borderColor: getColor(this.borderColor) || '#c2cfd6',
data: this.data
}
]
},
defaultOptions () {
return {
tooltips: {
enabled: false,
custom: customTooltips,
intersect: true,
mode: 'index',
position: 'nearest',
callbacks: {
labelColor: function (tooltipItem, chart) {
return { backgroundColor: chart.data.datasets[tooltipItem.datasetIndex].backgroundColor }
}
}
},
scales: {
xAxes: [{
display: false
}],
yAxes: [{
display: false
}]
},
elements: {
line: {
borderWidth: 2
},
point: {
radius: 0,
hitRadius: 10,
hoverRadius: 4,
hoverBorderWidth: 3
}
},
legend: {
display: false
}
}
}
}
}
</script>