CardWidgetsSalesState.vue
2.25 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<script setup>
import { useTheme } from 'vuetify'
const vuetifyTheme = useTheme()
const options = computed(() => {
const currentTheme = ref(vuetifyTheme.current.value.colors)
return {
chart: {
offsetY: -30,
parentHeightOffset: 0,
toolbar: { show: false },
},
tooltip: { enabled: false },
dataLabels: { enabled: false },
stroke: {
width: 5,
curve: 'smooth',
},
grid: {
show: false,
padding: {
left: 0,
top: -40,
right: 0,
},
},
fill: {
type: 'gradient',
gradient: {
opacityTo: 0.7,
opacityFrom: 0.5,
shadeIntensity: 1,
stops: [
0,
100,
],
colorStops: [[
{
offset: 0,
opacity: 0.6,
color: currentTheme.value.primary,
},
{
offset: 100,
opacity: 0.1,
color: currentTheme.value.surface,
},
]],
},
},
theme: {
monochrome: {
enabled: true,
shadeTo: 'light',
shadeIntensity: 1,
color: currentTheme.value.primary,
},
},
xaxis: {
type: 'numeric',
labels: { show: false },
axisTicks: { show: false },
axisBorder: { show: false },
},
yaxis: { show: false },
markers: {
size: 1,
offsetY: 1,
offsetX: -10,
strokeWidth: 5,
colors: ['transparent'],
strokeColors: 'transparent',
discrete: [{
size: 8,
seriesIndex: 0,
dataPointIndex: 5,
strokeColor: currentTheme.value.primary,
fillColor: currentTheme.value.surface,
}],
},
}
})
const series = [{
name: 'Traffic Rate',
data: [
35,
180,
100,
300,
220,
400,
],
}]
</script>
<template>
<VCard>
<VCardText>
<div class="d-flex justify-space-between">
<div>
<h5 class="text-h5">
Sales State
</h5>
<div class="text-body-1">
Total $42,580 Sales
</div>
</div>
<MoreBtn />
</div>
</VCardText>
<VueApexCharts
type="area"
:options="options"
:series="series"
:height="295"
/>
</VCard>
</template>