mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 21:03:35 +09:00
first
This commit is contained in:
63
src/data/dashboards/personal-v1/customersChart.ts
Normal file
63
src/data/dashboards/personal-v1/customersChart.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
export function useCustomersCharts() {
|
||||
const themeColors = useThemeColors()
|
||||
|
||||
const customersOptions = shallowRef({
|
||||
series: [
|
||||
{
|
||||
name: 'Returning',
|
||||
data: [31, 40, 28, 51, 42, 109, 100],
|
||||
},
|
||||
{
|
||||
name: 'Newcomers',
|
||||
data: [11, 32, 45, 32, 34, 52, 41],
|
||||
},
|
||||
{
|
||||
name: 'Abandonned',
|
||||
data: [78, 53, 36, 10, 14, 5, 2],
|
||||
},
|
||||
],
|
||||
chart: {
|
||||
height: 295,
|
||||
type: 'area',
|
||||
toolbar: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
colors: [themeColors.purple, themeColors.info, themeColors.lime],
|
||||
title: {
|
||||
text: 'Customers',
|
||||
align: 'left',
|
||||
},
|
||||
legend: {
|
||||
position: 'top',
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: false,
|
||||
},
|
||||
stroke: {
|
||||
width: [2, 2, 2],
|
||||
curve: 'smooth',
|
||||
},
|
||||
xaxis: {
|
||||
type: 'datetime',
|
||||
categories: [
|
||||
'2020-09-19T00:00:00.000Z',
|
||||
'2020-09-20T01:30:00.000Z',
|
||||
'2020-09-21T02:30:00.000Z',
|
||||
'2020-09-22T03:30:00.000Z',
|
||||
'2020-09-23T04:30:00.000Z',
|
||||
'2020-09-24T05:30:00.000Z',
|
||||
'2020-09-25T06:30:00.000Z',
|
||||
],
|
||||
},
|
||||
tooltip: {
|
||||
x: {
|
||||
format: 'dd/MM/yy HH:mm',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
return {
|
||||
customersOptions,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user