<template>
<div>
<div id="chart">
<apexchart
type="polarArea"
width="380"
:options="chartOptions"
:series="series"
></apexchart>
</div>
</div>
</template>
<script>
import VueApexCharts from 'vue-apexcharts'
export default {
components: {
apexchart: VueApexCharts,
},
data: function () {
return {
series: [42, 47, 52, 58, 65],
chartOptions: {
chart: {
width: 380,
type: 'polarArea',
},
labels: ['Free', 'Basic', 'Pro', 'Team', 'Enterprise'],
title: {
text: 'Satisfaction Score by Plan Tier',
align: 'center',
},
fill: {
opacity: 1,
},
stroke: {
width: 1,
colors: undefined,
},
yaxis: {
show: false,
},
legend: {
position: 'bottom',
},
plotOptions: {
polarArea: {
rings: {
strokeWidth: 0,
},
spokes: {
strokeWidth: 0,
},
},
},
theme: {
monochrome: {
enabled: true,
shadeTo: 'light',
shadeIntensity: 0.6,
},
},
},
}
},
}
</script>
<style>
#chart {
padding: 0;
max-width: 380px;
margin: 35px auto;
}
</style>