<template>
<div>
<div id="chart">
<apexchart
type="radialBar"
height="350"
:options="chartOptions"
:series="series"
></apexchart>
</div>
</div>
</template>
<script>
import VueApexCharts from 'vue-apexcharts'
export default {
components: {
apexchart: VueApexCharts,
},
data: function () {
return {
series: [72],
chartOptions: {
chart: {
height: 350,
type: 'radialBar',
},
plotOptions: {
radialBar: {
hollow: {
margin: 15,
size: '70%',
image: '../../assets/images/clock.png',
imageWidth: 64,
imageHeight: 64,
imageClipped: false,
},
dataLabels: {
name: {
show: false,
color: '#fff',
},
value: {
show: true,
color: '#333',
offsetY: 70,
fontSize: '22px',
},
},
},
},
colors: ['#20E647'],
fill: {
type: 'solid',
},
stroke: {
lineCap: 'round',
},
labels: ['Time on Task'],
},
}
},
}
</script>
<style>
#chart {
padding: 0;
max-width: 650px;
margin: 35px auto;
}
</style>