ApexChartDataScience.vue
682 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
47
<script setup>
import { useTheme } from 'vuetify'
import { getColumnChartConfig } from '@core/libs/apex-chart/apexCharConfig'
const vuetifyTheme = useTheme()
const chartConfig = computed(() => getColumnChartConfig(vuetifyTheme.current.value))
const series = [
{
name: 'Apple',
data: [
90,
120,
55,
100,
80,
125,
175,
70,
88,
],
},
{
name: 'Samsung',
data: [
85,
100,
30,
40,
95,
90,
30,
110,
62,
],
},
]
</script>
<template>
<VueApexCharts
type="bar"
height="400"
:options="chartConfig"
:series="series"
/>
</template>