forked from gooddata/gooddata-react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock-schema.json
191 lines (191 loc) · 6.87 KB
/
mock-schema.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"project": {
"title": "Storybook project v1",
"identifier": "storybook"
},
"groups": [
{
"metrics": [
{
"identifier": "1",
"title": "Amount"
},
{
"identifier": "2",
"title": "Bigger Amount"
},
{
"identifier": "3",
"title": "Sum of Sales"
},
{
"identifier": "4",
"title": "% of Goal",
"format": "#,##0.00%"
},
{
"identifier": "aagV61RmaPTt",
"title": "Amount [BOP]"
},
{
"identifier": "9",
"title": "Saved null"
}
],
"attributes": [
{
"identifier": "3",
"title": "Country",
"elements": ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burma (Myanmar)", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo, Democratic Republic of the", "Congo, Republic of", "Costa Rica", "Côte d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Nigeria", "Northern Ireland", "Norway", "Oman", "Pakistan", "Palau", "Palestinian State (proposed)", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Samoa", "San Marino", "São Tomé and Príncipe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "St. Kitts and Nevis", "St. Lucia", "St. Vincent and the Grenadines", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City (Holy See)", "Venezuela", "Vietnam", "Western Sahara (proposed state)", "Yemen", "Zaire", "Zambia", "Zimbabwe"]
},
{
"identifier": "4",
"title": "Colours",
"elements": [
"Pink",
"Red",
"Purple",
"Salmon"
]
},
{
"identifier": "5",
"title": "Popularity",
"elements": [
"low",
"medium",
"high"
]
}
],
"dateDataSets": [{
"title": "Activity",
"tags": "sales"
}, {
"title": "Opportunity"
}, {
"title": "Closed"
}]
}
],
"afmExecutions": [{
"_description": "KPI / saved execution with no data",
"execution": {"execution":{"afm":{"measures":[{"localIdentifier":"m1","definition":{"measure":{"item":{"uri":"/gdc/md/storybook/obj/9"}}}}],"filters":[]},"resultSpec":{"dimensions":[{"itemIdentifiers":["measureGroup"]}]}}},
"executionResult": {"executionResult":{"data":[],"paging":{"count":[0],"offset":[0],"total":[0]}}}
}],
"visualizationClasses": [{
"title": "Table",
"url": "local:table"
}, {
"title": "Column",
"url": "local:column"
}, {
"title": "Bar",
"url": "local:bar"
}, {
"title": "Line",
"url": "local:line"
}, {
"title": "Pie",
"url": "local:pie"
}, {
"title": "Headline",
"url": "local:headline"
}],
"visualizationObjects": [
{
"identifier": "1001",
"title": "Table",
"type": "local:table",
"buckets": [{
"localIdentifier": "measures",
"items": [{
"localIdentifier": "1",
"identifier": "1",
"alias": "Amount"
}, {
"localIdentifier": "2",
"identifier": "1",
"alias": "Amount"
}]
}, {
"localIdentifier": "attribute",
"items": [{
"localIdentifier": "3",
"displayForm": "3.df"
}]
}]
},
{
"identifier": "1002",
"title": "Pie chart",
"type": "local:pie",
"buckets": [{
"localIdentifier": "measures",
"items": [{
"localIdentifier": "m1",
"identifier": "1",
"alias": "Amount"
}, {
"localIdentifier": "m2",
"identifier": "2",
"alias": "Amount 2"
}]
}]
},
{
"title": "Chart with PoP measures",
"identifier": "1003",
"type": "local:bar",
"filters": [],
"buckets": [{
"localIdentifier": "measures",
"items": [{
"localIdentifier": "m1_pop",
"filters": [],
"identifier": "1",
"showPoP": "true",
"measureIdentifier": "m1",
"popAttribute": "attr.closed.year"
}, {
"localIdentifier": "m1",
"filters": [],
"identifier": "1",
"alias": "Amount"
}, {
"localIdentifier": "m2",
"filters": [],
"identifier": "2",
"alias": "Value"
}, {
"localIdentifier": "m2_pop",
"filters": [],
"identifier": "2",
"showPoP": "true",
"measureIdentifier": "m2",
"popAttribute": "attr.closed.year"
}]
}, {
"localIdentifier": "view",
"items": [{
"localIdentifier": "a1",
"displayForm": "attr.closed.year.df",
"alias": "Date"
}]
}]
},
{
"identifier": "1004",
"title": "Headline",
"type": "local:headline",
"buckets": [{
"localIdentifier": "measures",
"items": [{
"localIdentifier": "1",
"identifier": "1",
"alias": "Amount"
}]
}]
}
]
}