Files
panel/resources/js/views/pages/cards/card-statistics/CardStatisticsTotalGrowthAreaCharts.vue
2025-08-04 16:33:07 +03:30

90 lines
1.6 KiB
Vue

<script setup>
import { useTheme } from 'vuetify'
const vuetifyTheme = useTheme()
const currentTheme = vuetifyTheme.current.value.colors
const series = [{
name: 'Subscribers',
data: [
200,
55,
400,
250,
],
}]
const chartOptions = {
chart: {
type: 'area',
parentHeightOffset: 0,
toolbar: { show: false },
sparkline: { enabled: true },
},
markers: {
colors: 'transparent',
strokeColors: 'transparent',
},
grid: { show: false },
colors: [currentTheme.success],
fill: {
type: 'gradient',
gradient: {
shadeIntensity: 0.9,
opacityFrom: 0.5,
opacityTo: 0.07,
stops: [
0,
80,
100,
],
},
},
dataLabels: { enabled: false },
stroke: {
width: 2,
curve: 'smooth',
},
xaxis: {
show: true,
lines: { show: false },
labels: { show: false },
stroke: { width: 0 },
axisBorder: { show: false },
},
yaxis: {
stroke: { width: 0 },
show: false,
},
tooltip: { enabled: false },
}
</script>
<template>
<VCard>
<VCardText class="pb-2">
<h6 class="text-h6">
Sales
</h6>
<span class="text-body-2">Last Year</span>
</VCardText>
<VueApexCharts
:options="chartOptions"
:series="series"
:height="90"
/>
<VCardText class="pt-0">
<div class="d-flex align-center justify-space-between mt-3">
<h6 class="text-h6 text-center font-weight-medium">
175k
</h6>
<span class="text-sm text-error">
-16.2%
</span>
</div>
</VCardText>
</VCard>
</template>