-
Notifications
You must be signed in to change notification settings - Fork 10
/
capabilities.json
351 lines (351 loc) · 9.62 KB
/
capabilities.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
{
"dataRoles": [
{
"name": "NODE",
"displayName": "Item (required)",
"kind": "Grouping",
"description": "Name of an Item. Bind to [Item] to rank items by name. Other bindings depend on data tables: object format (Item | Item Linker ...) OR edge format (Item | Linked Item ...)"
},
{
"name": "NODE_TYPE",
"displayName": "Item Type",
"kind": "Grouping",
"description": "The type of the item. Bind to [Item, Item Type] to partition items by type. Default = \"Item\"."
},
{
"name": "NODE_LINKER",
"displayName": "Item Linker (object format)",
"kind": "Grouping",
"description": "An object identifier that creates implicit links between all associated items. Bind to [Item, Item Linker] to rank items by their count of linker objects. Do not bind the edge format fields below."
},
{
"name": "NODE_ATTRIBUTES",
"displayName": "Item Attributes (up to 10)",
"kind": "Grouping",
"description": "Numeric attributes of the item (positive or negative). Bind to [Item, Item Attributes] to rank items by their attribute values."
},
{
"name": "LINKED_NODE",
"displayName": "Linked Item (edge format)",
"kind": "Grouping",
"description": "An item linked to the source Item. Bind to [Item, Linked Item] to rank items by their count of linked items. Do not bind the object format field above."
},
{
"name": "LINKED_NODE_TYPE",
"displayName": "Linked Item Type (edge format)",
"kind": "Grouping",
"description": "The type of the linked item. Bind to [Item Type, Linked Item Type] to partition items by type. Do not bind the object format field above. Default = \"Item\"."
},
{
"name": "LINK_WEIGHT",
"displayName": "Link Weight (edge format)",
"kind": "Grouping",
"description": "The weight of the directed link to the Linked Item. Default = 1."
},
{
"name": "FILTER_KEY",
"displayName": "Item Filter Key",
"kind": "Grouping",
"description": "Optional column on which to slice (e.g., on compound Type-Item keys when the same Item has multiple types). Default = slice on Item column."
},
{
"name": "LINKED_FILTER_KEY",
"displayName": "Linked Item Filter Key (edge format)",
"kind": "Grouping",
"description": "Optional column on which to slice (e.g., on compound Type-Item keys when the same Item has multiple types). Default = slice on Linked Item column."
}
],
"dataViewMappings": [
{
"categorical": {
"categories": {
"select": [
{
"for": {
"in": "NODE"
}
},
{
"for": {
"in": "NODE_ATTRIBUTES"
}
},
{
"for": {
"in": "NODE_TYPE"
}
},
{
"for": {
"in": "NODE_LINKER"
}
},
{
"for": {
"in": "LINKED_NODE"
}
},
{
"for": {
"in": "LINKED_NODE_TYPE"
}
},
{
"for": {
"in": "LINK_WEIGHT"
}
},
{
"for": {
"in": "FILTER_KEY"
}
},
{
"for": {
"in": "LINKED_FILTER_KEY"
}
}
],
"dataReductionAlgorithm": {
"top": {
"count": 100000
}
}
}
},
"conditions": [
{
"NODE": {
"min": 0,
"max": 1
},
"NODE_ATTRIBUTES": {
"min": 0,
"max": 10
},
"NODE_TYPE": {
"min": 0,
"max": 1
},
"NODE_LINKER": {
"min": 0,
"max": 1
},
"LINKED_NODE_TYPE": {
"min": 0,
"max": 1
},
"LINKED_NODE": {
"min": 0,
"max": 1
},
"LINK_WEIGHT": {
"min": 0,
"max": 1
},
"FILTER_KEY": {
"min": 0,
"max": 1
}
}
]
}
],
"objects": {
"general": {
"displayName": "General",
"properties": {
"version": {
"displayName": "Version",
"type": {
"text": true
}
},
"state": {
"type": {
"text": true
}
},
"filter": {
"displayName": "filter",
"type": {
"filter": true
}
}
}
},
"configuration": {
"displayName": "Configuration",
"properties": {
"enablePinning": {
"displayName": "Enable pinning",
"description": "Whether to allow pinning selections as bookmarks",
"type": {
"bool": true
}
},
"showRelated": {
"displayName": "Show Related",
"description": "Whether to show related nodes on selection",
"type": {
"bool": true
}
},
"wrapText": {
"displayName": "Wrap Text",
"description": "Whether to wrap text or truncate",
"type": {
"bool": true
}
},
"fontSize": {
"displayName": "Text Size",
"description": "The size of text throughout the visual",
"type": {
"formatting": {
"fontSize": true
}
}
},
"fontColor": {
"displayName": "Text Color",
"description": "The color of text throughout the visual",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"backgroundColor": {
"displayName": "Background Color",
"description": "The background color of the visual",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"barColor": {
"displayName": "Bar Color",
"description": "The color of the value bars",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"sectionColor": {
"displayName": "Section Color",
"description": "The color of the section headers for each item type",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"bookmarkColor": {
"displayName": "Bookmark Color",
"description": "The color hue of the initial bookmark; range [0-360]",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"bookmarkLightness": {
"displayName": "Bookmark Lightness",
"description": "The color lightness of all bookmarks; range [20-80]",
"type": {
"numeric": true
}
},
"barSize": {
"displayName": "Bar Percentage",
"description": "The percentage width of the value bars; range [0-80]",
"type": {
"numeric": true
}
},
"topCount": {
"displayName": "Top Items Count",
"description": "How many items to preview for each item type",
"type": {
"numeric": true
}
},
"maxCount": {
"displayName": "Max Items Count",
"description": "How many items to show for each item type",
"type": {
"numeric": true
}
},
"nodeTypeLabelLength": {
"displayName": "Node Type Label Length",
"description": "Create node type labels from the first N letters",
"type": {
"numeric": true
}
},
"attributeWeightDelta": {
"displayName": "Attribute Weight Delta",
"description": "How much to increment/decrement attribute weights",
"type": {
"numeric": true
}
},
"sectionOrder": {
"displayName": "Section Order",
"description": "The rank ordering of sections",
"type": {
"enumeration": [
{
"displayName": "Item Values",
"displayNameKey": "Item Values",
"value": "Item Values"
},
{
"displayName": "Item Counts",
"displayNameKey": "Item Counts",
"value": "Item Counts"
},
{
"displayName": "Section Names (A-Z, 0-9)",
"displayNameKey": "Section Names (A-Z, 0-9)",
"value": "Section Names (A-Z, 0-9)"
},
{
"displayName": "Section Names (Z-A, 9-0)",
"displayNameKey": "Section Names (Z-A, 9-0)",
"value": "Section Names (Z-A, 9-0)"
}
]
}
}
}
},
"visualData": {
"displayNameKey": "visualData",
"displayName": "Visual Data",
"properties": {
"data": {
"displayNameKey": "data",
"displayName": "Data",
"type": {
"text": true
}
}
}
}
}
}