ApexChartMobileComparison.vue
665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<script setup>
import { useTheme } from 'vuetify'
import { getRadarChartConfig } from '@core/libs/apex-chart/apexCharConfig'
const vuetifyTheme = useTheme()
const series = [
{
name: 'iPhone 12',
data: [
41,
64,
81,
60,
42,
42,
33,
23,
],
},
{
name: 'Samsung s20',
data: [
65,
46,
42,
25,
58,
63,
76,
43,
],
},
]
const chartConfig = computed(() => getRadarChartConfig(vuetifyTheme.current.value))
</script>
<template>
<VueApexCharts
type="radar"
height="400"
:options="chartConfig"
:series="series"
/>
</template>