forked from shriyachhabra/acms-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_data.json
135 lines (132 loc) · 4.25 KB
/
sample_data.json
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
132
133
134
135
{
"header": {
"title":"ACMS DASHBOARD",
"style": {
"color": "blue",
"height": "70",
"width": ""
}
},
"page_header_title":{
"title":"Access Points Dashboard",
"style": {
"color": "",
"height": "",
"width": ""
}
},
"edit_button":{
"title":"Edit",
"style": {
"color": "",
"height": "",
"width": ""
}
},
"new_dashboard_button":{
"title":"New Dashoboard",
"style": {
"color": "",
"height": "",
"width": ""
}
},
"components":[
{
"id":"1",
"type":"bar",
"style":{
"ylabel": "Stock",
"xlabel": "TimeStamp",
"title":"bar Graph",
"height":300,
"width":480
},
"x-val":"Timestamp",
"y-val":"Stock",
"position":"1",
"query":"{\"query\": {\"range\": {\"Stock\": {\"gte\":300,\"lte\":400}}}}",
"datasource":"elasticsearch",
"database": "product",
"table": "order_list"
},
{
"id":"2",
"type":"line",
"x-val":"Timestamp",
"y-val":"Price",
"position":"2",
"style":{
"ylabel": "Price",
"xlabel": "Timestamp",
"includeZero": true,
"animatedZooms": true,
"title":"Line Graph",
"height":300,
"width":480
},
"query":"{\"Price\":{\"$gt\":800} }",
"datasource":"mongodb",
"database": "product",
"table": "data"
},
{
"id":"3",
"type":"pie",
"title": "Stock in different year",
"height": 400,
"width": 980,
"data_value": "Stock",
"label_value": "Timestamp",
"labels": ["1950-1990", "2000-2008", "2010-2015", "2017-2018"],
"backgroundColor": ["#007bff", "#dc3545", "#ffc107", "#28a745"],
"position":"3",
"query":"{\"query\": {\"range\": {\"Stock\": {\"gte\":300}}}}",
"datasource":"elasticsearch",
"database": "product",
"table": "order_list"
},
{
"id":"4",
"type":"table",
"title": "TABLE",
"query":"{\"Market Place\":\"Australia\"}",
"columns": [
{
"_id": {
"require": true,
"heading": "ID"
}
},
{"Product Id": {
"require": true,
"heading": "Product"
}},
{"Timestamp": {
"require": false,
"heading": "Time"
}},
{"Price": {
"require": true,
"heading": "Prices"
}},
{"Customer Id": {
"require": false,
"heading": "Customer"
}},
{"Market Place": {
"require": false,
"heading": "Market Place"
}},
{"Session Id": {
"require": false,
"heading": "Session"
}}
],
"datasource":"mongodb",
"database": "product",
"table": "data",
"position": "4"
}
]
}