@nebula.js/sn-gauge 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +379 -20
- package/core/esm/index.js +2 -2
- package/dist/sn-gauge.esm.js +2 -2
- package/dist/sn-gauge.js +2 -2
- package/dist/sn-gauge.systemjs.js +2 -2
- package/package.json +7 -7
- package/sn-gauge-ext/dist/sn-gauge.js +2 -2
- package/sn-gauge-ext/sn-gauge.qext +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"name": "@nebula.js/sn-gauge:properties",
|
|
5
5
|
"description": "Gauge generic object definition",
|
|
6
|
-
"version": "0.8.
|
|
6
|
+
"version": "0.8.6",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"stability": "stable",
|
|
9
9
|
"x-qlik-visibility": "public"
|
|
@@ -17,29 +17,135 @@
|
|
|
17
17
|
],
|
|
18
18
|
"kind": "object",
|
|
19
19
|
"entries": {
|
|
20
|
+
"autoOrientation": {
|
|
21
|
+
"description": "Auto orientation, only applicable to bar gauge.\nIf true, the orientation of the bar gauge is adaptive to the aspect ratio of the chart.",
|
|
22
|
+
"defaultValue": true,
|
|
23
|
+
"type": "boolean"
|
|
24
|
+
},
|
|
25
|
+
"color": {
|
|
26
|
+
"description": "Color settings.",
|
|
27
|
+
"entries": {
|
|
28
|
+
"useBaseColors": {
|
|
29
|
+
"description": "If should use colors encoded in master items",
|
|
30
|
+
"defaultValue": "measure",
|
|
31
|
+
"kind": "union",
|
|
32
|
+
"items": [
|
|
33
|
+
{
|
|
34
|
+
"kind": "literal",
|
|
35
|
+
"value": "'measure'"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"kind": "literal",
|
|
39
|
+
"value": "'off'"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"kind": "object"
|
|
45
|
+
},
|
|
46
|
+
"components": {
|
|
47
|
+
"description": "Styling of chart components.",
|
|
48
|
+
"kind": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "#/definitions/Component"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
20
53
|
"footnote": {
|
|
21
54
|
"description": "Footnote of the visualization.",
|
|
22
55
|
"defaultValue": "",
|
|
23
56
|
"type": "string"
|
|
24
57
|
},
|
|
58
|
+
"gaugetype": {
|
|
59
|
+
"description": "Gauge type",
|
|
60
|
+
"defaultValue": "radial",
|
|
61
|
+
"kind": "union",
|
|
62
|
+
"items": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "literal",
|
|
65
|
+
"value": "'radial'"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"kind": "literal",
|
|
69
|
+
"value": "'bar'"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
25
73
|
"measureAxis": {
|
|
26
74
|
"description": "Measure axis configuration.",
|
|
27
75
|
"entries": {
|
|
28
76
|
"max": {
|
|
29
77
|
"description": "Maximum value for the measure axis.",
|
|
30
78
|
"defaultValue": 100,
|
|
31
|
-
"
|
|
79
|
+
"kind": "union",
|
|
80
|
+
"items": [
|
|
81
|
+
{
|
|
82
|
+
"type": "number"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "#/definitions/ValueExpression"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
32
88
|
},
|
|
33
89
|
"min": {
|
|
34
90
|
"description": "Minimum value for the measure axis.",
|
|
35
91
|
"defaultValue": 0,
|
|
36
|
-
"
|
|
92
|
+
"kind": "union",
|
|
93
|
+
"items": [
|
|
94
|
+
{
|
|
95
|
+
"type": "number"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "#/definitions/ValueExpression"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"show": {
|
|
103
|
+
"description": "Labels and title",
|
|
104
|
+
"defaultValue": "all",
|
|
105
|
+
"kind": "union",
|
|
106
|
+
"items": [
|
|
107
|
+
{
|
|
108
|
+
"kind": "literal",
|
|
109
|
+
"value": "'all'"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"kind": "literal",
|
|
113
|
+
"value": "'labels'"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"kind": "literal",
|
|
117
|
+
"value": "'title'"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"kind": "literal",
|
|
121
|
+
"value": "'none'"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"spacing": {
|
|
126
|
+
"description": "Axis scale",
|
|
127
|
+
"defaultValue": 1,
|
|
128
|
+
"kind": "union",
|
|
129
|
+
"items": [
|
|
130
|
+
{
|
|
131
|
+
"kind": "literal",
|
|
132
|
+
"value": 1
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"kind": "literal",
|
|
136
|
+
"value": 0.5
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"kind": "literal",
|
|
140
|
+
"value": 2
|
|
141
|
+
}
|
|
142
|
+
]
|
|
37
143
|
}
|
|
38
144
|
},
|
|
39
145
|
"kind": "object"
|
|
40
146
|
},
|
|
41
147
|
"orientation": {
|
|
42
|
-
"description": "Orientation of the gauge.",
|
|
148
|
+
"description": "Orientation of the bar gauge. Only applicable when autoOrientation is false.",
|
|
43
149
|
"defaultValue": "horizontal",
|
|
44
150
|
"kind": "union",
|
|
45
151
|
"items": [
|
|
@@ -53,6 +159,10 @@
|
|
|
53
159
|
}
|
|
54
160
|
]
|
|
55
161
|
},
|
|
162
|
+
"paletteProgressColor": {
|
|
163
|
+
"description": "Define the progress color.\nApplicable when useSegment is 'off' and useBaseColors is also 'off'",
|
|
164
|
+
"type": "#/definitions/PaletteColor"
|
|
165
|
+
},
|
|
56
166
|
"qHyperCubeDef": {
|
|
57
167
|
"description": "Hypercube definition for the visualization.",
|
|
58
168
|
"entries": {
|
|
@@ -88,6 +198,19 @@
|
|
|
88
198
|
},
|
|
89
199
|
"kind": "object"
|
|
90
200
|
},
|
|
201
|
+
"refLine": {
|
|
202
|
+
"description": "Reference lines settings",
|
|
203
|
+
"entries": {
|
|
204
|
+
"refLines": {
|
|
205
|
+
"description": "Array of measure based reference line definitions",
|
|
206
|
+
"kind": "array",
|
|
207
|
+
"items": {
|
|
208
|
+
"type": "#/definitions/RefLine"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"kind": "object"
|
|
213
|
+
},
|
|
91
214
|
"segmentInfo": {
|
|
92
215
|
"description": "Segment information for the gauge.",
|
|
93
216
|
"entries": {
|
|
@@ -95,32 +218,24 @@
|
|
|
95
218
|
"description": "Array of segment limits.",
|
|
96
219
|
"kind": "array",
|
|
97
220
|
"items": {
|
|
98
|
-
"
|
|
99
|
-
"entries": {
|
|
100
|
-
"value": {
|
|
101
|
-
"type": "number"
|
|
102
|
-
},
|
|
103
|
-
"gradient": {
|
|
104
|
-
"type": "boolean"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
221
|
+
"type": "#/definitions/Limits"
|
|
107
222
|
}
|
|
108
223
|
},
|
|
109
224
|
"paletteColors": {
|
|
110
225
|
"description": "Array of segment colors.",
|
|
111
226
|
"kind": "array",
|
|
112
227
|
"items": {
|
|
113
|
-
"
|
|
114
|
-
"entries": {
|
|
115
|
-
"index": {
|
|
116
|
-
"type": "number"
|
|
117
|
-
}
|
|
118
|
-
}
|
|
228
|
+
"type": "#/definitions/PaletteColor"
|
|
119
229
|
}
|
|
120
230
|
}
|
|
121
231
|
},
|
|
122
232
|
"kind": "object"
|
|
123
233
|
},
|
|
234
|
+
"showDetails": {
|
|
235
|
+
"description": "Show visualization details toggle",
|
|
236
|
+
"defaultValue": true,
|
|
237
|
+
"type": "boolean"
|
|
238
|
+
},
|
|
124
239
|
"showTitles": {
|
|
125
240
|
"description": "Whether to show titles for the visualization.",
|
|
126
241
|
"defaultValue": true,
|
|
@@ -136,6 +251,11 @@
|
|
|
136
251
|
"defaultValue": "",
|
|
137
252
|
"type": "string"
|
|
138
253
|
},
|
|
254
|
+
"useSegments": {
|
|
255
|
+
"description": "Decide if segments coloring or progress coloring is used.\nIf true, the segments are colored according to the segmentInfo.paletteColors.",
|
|
256
|
+
"defaultValue": false,
|
|
257
|
+
"type": "boolean"
|
|
258
|
+
},
|
|
139
259
|
"version": {
|
|
140
260
|
"description": "Current version of this generic object definition",
|
|
141
261
|
"type": "string"
|
|
@@ -143,5 +263,244 @@
|
|
|
143
263
|
}
|
|
144
264
|
}
|
|
145
265
|
},
|
|
146
|
-
"definitions": {
|
|
266
|
+
"definitions": {
|
|
267
|
+
"Axis": {
|
|
268
|
+
"kind": "object",
|
|
269
|
+
"entries": {
|
|
270
|
+
"axis": {
|
|
271
|
+
"type": "#/definitions/AxisStyling"
|
|
272
|
+
},
|
|
273
|
+
"key": {
|
|
274
|
+
"description": "This should be set to `\"axis\"`",
|
|
275
|
+
"type": "string"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"AxisStyling": {
|
|
280
|
+
"kind": "object",
|
|
281
|
+
"entries": {
|
|
282
|
+
"label": {
|
|
283
|
+
"type": "#/definitions/LabelNameStyling"
|
|
284
|
+
},
|
|
285
|
+
"title": {
|
|
286
|
+
"type": "#/definitions/FontStyling"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"Component": {
|
|
291
|
+
"kind": "alias",
|
|
292
|
+
"items": {
|
|
293
|
+
"kind": "union",
|
|
294
|
+
"items": [
|
|
295
|
+
{
|
|
296
|
+
"type": "#/definitions/Label"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"type": "#/definitions/Axis"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"Expr": {
|
|
305
|
+
"description": "Expression",
|
|
306
|
+
"kind": "object",
|
|
307
|
+
"entries": {
|
|
308
|
+
"qExpr": {
|
|
309
|
+
"description": "expression as a string, e.g. '=Sum([Actual Amount])', note that the equal sign is optional",
|
|
310
|
+
"type": "string"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"FontStyling": {
|
|
315
|
+
"kind": "object",
|
|
316
|
+
"entries": {
|
|
317
|
+
"color": {
|
|
318
|
+
"type": "#/definitions/PaletteColor"
|
|
319
|
+
},
|
|
320
|
+
"fontFamily": {
|
|
321
|
+
"type": "string"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"Label": {
|
|
326
|
+
"kind": "object",
|
|
327
|
+
"entries": {
|
|
328
|
+
"key": {
|
|
329
|
+
"description": "This should be set to `\"value\"`",
|
|
330
|
+
"type": "string"
|
|
331
|
+
},
|
|
332
|
+
"label": {
|
|
333
|
+
"type": "#/definitions/LabelValueStyling"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"LabelNameStyling": {
|
|
338
|
+
"kind": "object",
|
|
339
|
+
"entries": {
|
|
340
|
+
"name": {
|
|
341
|
+
"type": "#/definitions/FontStyling"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"LabelValueStyling": {
|
|
346
|
+
"kind": "object",
|
|
347
|
+
"entries": {
|
|
348
|
+
"value": {
|
|
349
|
+
"description": "Gauge value label",
|
|
350
|
+
"type": "#/definitions/FontStyling"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"Limits": {
|
|
355
|
+
"description": "The limits between segments colors.",
|
|
356
|
+
"kind": "object",
|
|
357
|
+
"entries": {
|
|
358
|
+
"gradient": {
|
|
359
|
+
"description": "Gradient color (i.e. gradually changing color) or solid color",
|
|
360
|
+
"type": "boolean"
|
|
361
|
+
},
|
|
362
|
+
"value": {
|
|
363
|
+
"description": "Value of the limit",
|
|
364
|
+
"kind": "union",
|
|
365
|
+
"items": [
|
|
366
|
+
{
|
|
367
|
+
"type": "number"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"type": "#/definitions/ValueExpression"
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"PaletteColor": {
|
|
377
|
+
"description": "Color information structure. Holds the actual color and index in palette.",
|
|
378
|
+
"kind": "object",
|
|
379
|
+
"entries": {
|
|
380
|
+
"color": {
|
|
381
|
+
"description": "Color as hex string (mandatory if index: -1)",
|
|
382
|
+
"type": "string"
|
|
383
|
+
},
|
|
384
|
+
"index": {
|
|
385
|
+
"description": "Index in palette",
|
|
386
|
+
"type": "number"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"RefLine": {
|
|
391
|
+
"kind": "object",
|
|
392
|
+
"entries": {
|
|
393
|
+
"label": {
|
|
394
|
+
"description": "Reference line label.",
|
|
395
|
+
"kind": "union",
|
|
396
|
+
"items": [
|
|
397
|
+
{
|
|
398
|
+
"type": "string"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"type": "#/definitions/StringExpression"
|
|
402
|
+
}
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
"paletteColor": {
|
|
406
|
+
"description": "Color of the reference line and label.",
|
|
407
|
+
"type": "#/definitions/PaletteColor"
|
|
408
|
+
},
|
|
409
|
+
"refLineExpr": {
|
|
410
|
+
"kind": "object",
|
|
411
|
+
"entries": {
|
|
412
|
+
"value": {
|
|
413
|
+
"kind": "union",
|
|
414
|
+
"items": [
|
|
415
|
+
{
|
|
416
|
+
"type": "number"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"type": "#/definitions/ValueExpression"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"label": {
|
|
424
|
+
"optional": true,
|
|
425
|
+
"kind": "union",
|
|
426
|
+
"items": [
|
|
427
|
+
{
|
|
428
|
+
"type": "string"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"type": "#/definitions/StringExpression"
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"show": {
|
|
438
|
+
"description": "Set to true to display this reference line.",
|
|
439
|
+
"defaultValue": true,
|
|
440
|
+
"kind": "union",
|
|
441
|
+
"items": [
|
|
442
|
+
{
|
|
443
|
+
"type": "boolean"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"type": "#/definitions/ValueExpression"
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
},
|
|
450
|
+
"showLabel": {
|
|
451
|
+
"description": "Set to true to show the label of this reference line.",
|
|
452
|
+
"optional": true,
|
|
453
|
+
"defaultValue": true,
|
|
454
|
+
"type": "boolean"
|
|
455
|
+
},
|
|
456
|
+
"showValue": {
|
|
457
|
+
"description": "Set to true to show the value of this reference line.",
|
|
458
|
+
"optional": true,
|
|
459
|
+
"defaultValue": true,
|
|
460
|
+
"type": "boolean"
|
|
461
|
+
},
|
|
462
|
+
"style": {
|
|
463
|
+
"description": "Styling settings for reference line",
|
|
464
|
+
"optional": true,
|
|
465
|
+
"type": "#/definitions/RefLineStyle"
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"RefLineStyle": {
|
|
470
|
+
"description": "Styling settings for reference line",
|
|
471
|
+
"kind": "object",
|
|
472
|
+
"entries": {
|
|
473
|
+
"lineThickness": {
|
|
474
|
+
"description": "Set the thickness for this reference line.",
|
|
475
|
+
"optional": true,
|
|
476
|
+
"defaultValue": 2,
|
|
477
|
+
"type": "number"
|
|
478
|
+
},
|
|
479
|
+
"lineType": {
|
|
480
|
+
"description": "Set the dash type for this reference line.",
|
|
481
|
+
"optional": true,
|
|
482
|
+
"defaultValue": "''",
|
|
483
|
+
"type": "string"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"StringExpression": {
|
|
488
|
+
"description": "String expression",
|
|
489
|
+
"kind": "object",
|
|
490
|
+
"entries": {
|
|
491
|
+
"qStringExpression": {
|
|
492
|
+
"type": "#/definitions/Expr"
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"ValueExpression": {
|
|
497
|
+
"description": "Value expression",
|
|
498
|
+
"kind": "object",
|
|
499
|
+
"entries": {
|
|
500
|
+
"qValueExpression": {
|
|
501
|
+
"type": "#/definitions/Expr"
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
147
506
|
}
|