<template>
<div>
<div id="chart">
<apexchart
type="polarArea"
:options="chartOptions"
:series="series"
></apexchart>
</div>
</div>
</template>
<script>
import VueApexCharts from 'vue-apexcharts'
export default {
components: {
apexchart: VueApexCharts,
},
data: function () {
return {
series: [12, 8, 15, 23, 18, 9, 6, 11],
chartOptions: {
chart: {
type: 'polarArea',
},
labels: ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'],
title: {
text: 'Wind Frequency by Direction (%)',
align: 'center',
},
stroke: {
colors: ['#fff'],
},
fill: {
opacity: 0.8,
},
legend: {
position: 'bottom',
},
responsive: [
{
breakpoint: 480,
options: {
chart: {
width: 200,
},
legend: {
position: 'bottom',
},
},
},
],
},
}
},
}
</script>
<style>
#chart {
max-width: 380px;
margin: 35px auto;
padding: 0;
}
</style>