-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathstatistics-charts-data.js
More file actions
131 lines (126 loc) · 2.22 KB
/
statistics-charts-data.js
File metadata and controls
131 lines (126 loc) · 2.22 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
123
124
125
126
127
128
129
130
131
import { chartsConfig } from "@/configs";
const websiteViewsChart = {
type: "bar",
height: 220,
series: [
{
name: "Views",
data: [50, 20, 10, 22, 50, 10, 40],
},
],
options: {
...chartsConfig,
colors: "#388e3c",
plotOptions: {
bar: {
columnWidth: "16%",
borderRadius: 5,
},
},
xaxis: {
...chartsConfig.xaxis,
categories: ["M", "T", "W", "T", "F", "S", "S"],
},
},
};
const dailySalesChart = {
type: "line",
height: 220,
series: [
{
name: "Sales",
data: [50, 40, 300, 320, 500, 350, 200, 230, 500],
},
],
options: {
...chartsConfig,
colors: ["#0288d1"],
stroke: {
lineCap: "round",
},
markers: {
size: 5,
},
xaxis: {
...chartsConfig.xaxis,
categories: [
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
],
},
},
};
const completedTaskChart = {
type: "line",
height: 220,
series: [
{
name: "Sales",
data: [50, 40, 300, 320, 500, 350, 200, 230, 500],
},
],
options: {
...chartsConfig,
colors: ["#388e3c"],
stroke: {
lineCap: "round",
},
markers: {
size: 5,
},
xaxis: {
...chartsConfig.xaxis,
categories: [
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
],
},
},
};
const completedTasksChart = {
...completedTaskChart,
series: [
{
name: "Tasks",
data: [50, 40, 300, 220, 500, 250, 400, 230, 500],
},
],
};
export const statisticsChartsData = [
{
color: "white",
title: "QA Review",
description: "Last Campaign Performance",
footer: "campaign sent 2 days ago",
chart: websiteViewsChart,
},
{
color: "white",
title: "Daily Commits",
description: "15% decrease in today sales",
footer: "updated 4 min ago",
chart: dailySalesChart,
},
{
color: "white",
title: "Completed Tasks",
description: "Last Campaign Performance",
footer: "just updated",
chart: completedTasksChart,
},
];
export default statisticsChartsData;