<template>
<div>
<div id="chart">
<apexchart
type="radar"
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: [
{
name: 'Model X',
data: [92, 60, 88, 95, 55, 90],
},
{
name: 'Model Y',
data: [70, 95, 66, 78, 85, 72],
},
{
name: 'Model Z',
data: [80, 78, 82, 70, 68, 60],
},
],
chartOptions: {
chart: {
height: 350,
type: 'radar',
},
title: {
text: 'Smartphone Comparison',
},
stroke: {
width: 2,
},
fill: {
opacity: 0.1,
},
markers: {
size: 0,
},
yaxis: {
stepSize: 20,
},
xaxis: {
categories: [
'Performance',
'Battery',
'Camera',
'Display',
'Value',
'Design',
],
},
},
}
},
}
</script>
<style>
#chart {
max-width: 450px;
margin: 35px auto;
}
</style>