@nebula.js/sn-pie-chart 1.21.2 → 1.22.0

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.
@@ -1,9 +1,9 @@
1
1
  {
2
- "scriptappy": "1.0.0",
2
+ "scriptappy": "1.1.0",
3
3
  "info": {
4
4
  "name": "@nebula.js/sn-pie-chart:properties",
5
5
  "description": "Pie chart generic object definition",
6
- "version": "1.21.2",
6
+ "version": "1.22.0",
7
7
  "license": "MIT",
8
8
  "stability": "stable",
9
9
  "x-qlik-visibility": "public"
@@ -14,7 +14,6 @@
14
14
  "entries": {
15
15
  "color": {
16
16
  "description": "Color settings.\nMost color options for visualizations are set in the color object in the options. You activate custom coloring by setting `\"auto\": false` which turns off auto-coloring.\nIf `\"auto\": true`, no other properties need to be defined in the color object.\nNote: Some of the color properties are depending on which theme is currently being used.",
17
- "kind": "object",
18
17
  "entries": {
19
18
  "auto": {
20
19
  "description": "Set to use automatic coloring.\nWhen `\"auto\": true`, color settings are based on the visualization used and the number of dimensions\nand measures, that is, the settings are not fixed, but are dependent on the data input.",
@@ -111,8 +110,7 @@
111
110
  "kind": "literal",
112
111
  "value": "'dc'"
113
112
  }
114
- ],
115
- "type": "string"
113
+ ]
116
114
  },
117
115
  "mode": {
118
116
  "description": "Sets the coloring mode for the visualization when auto-coloring has been switched off (`\"auto\": false`). Can be one of:\n* `primary`: a single color (by default blue) is used for all items in the chart. In visualizations that do not benefit from multiple colors (bar charts with one dimension and scatter plots), single color is the default setting.\n* `byDimension`: coloring is based upon the amount of dimension values. Details are set in the `\"byDimDef\"` property.\n!Note: `byDimension` can only be used in conjunction with an attribute dimension on the dimension to color by, as shown in the example below.\n```json\n{\n \"qDef\": {\n \"qFieldDefs\": [\n \"NetScoreName\"\n ]\n },\n \"qAttributeDimensions\": [\n {\n \"qDef\": \"NetScoreName\",\n \"id\": \"colorByAlternative\",\n \"label\": \"Year\"\n }\n ]\n}\n```\n* `byExpression`: coloring is based on an expression, which in most cases is a color code. Details are set in the `\"expressionIsColor\"`, `\"expressionLabel`\" and `\"colorExpression\"` properties.\n* `byMeasure`: coloring is based on the measure value. Details are set in the `\"byMeasureDef\"` property.\n* `byMultiple`: can be used when more than one measure is used. By default, 12 colors are used for the dimensions. The colors are reused when there are more than 12 dimension values.",
@@ -139,8 +137,7 @@
139
137
  "kind": "literal",
140
138
  "value": "'byMultiple'"
141
139
  }
142
- ],
143
- "type": "string"
140
+ ]
144
141
  },
145
142
  "paletteColor": {
146
143
  "description": "The paletteColor object is used to define the color when you color by single color `(\"mode\": \"primary\")`.",
@@ -180,8 +177,7 @@
180
177
  "kind": "literal",
181
178
  "value": "'measure'"
182
179
  }
183
- ],
184
- "type": "string"
180
+ ]
185
181
  },
186
182
  "useDimColVal": {
187
183
  "description": "Set to true if you want to apply the colors defined for library dimensions when used.\nOnly applicable if `'colorMode': 'byDimension'`.",
@@ -191,21 +187,20 @@
191
187
  "useMeasureGradient": {
192
188
  "description": "Set to true if you want to apply the colors defined for library measures when used. Only applicable if `\"mode\": \"byMeasure\"`.",
193
189
  "defaultValue": true,
194
- "kind": "literal",
195
- "value": true
190
+ "type": "boolean"
196
191
  }
197
- }
192
+ },
193
+ "kind": "object"
198
194
  },
199
195
  "components": {
200
196
  "description": "Styling of chart components.",
201
197
  "kind": "array",
202
198
  "items": {
203
- "type": "#/definitions/Component"
199
+ "type": "#/definitions/Slices"
204
200
  }
205
201
  },
206
202
  "dataPoint": {
207
203
  "description": "Data point settings.",
208
- "kind": "object",
209
204
  "entries": {
210
205
  "auto": {
211
206
  "description": "Automatically select how to present data point values.",
@@ -229,8 +224,7 @@
229
224
  "kind": "literal",
230
225
  "value": "'value'"
231
226
  }
232
- ],
233
- "type": "string"
227
+ ]
234
228
  },
235
229
  "labelValueMode": {
236
230
  "description": "Set how to present data point values. Dependent of the auto property",
@@ -245,10 +239,10 @@
245
239
  "kind": "literal",
246
240
  "value": "'radius'"
247
241
  }
248
- ],
249
- "type": "string"
242
+ ]
250
243
  }
251
- }
244
+ },
245
+ "kind": "object"
252
246
  },
253
247
  "dimensionTitle": {
254
248
  "description": "Display the dimension title.",
@@ -257,14 +251,14 @@
257
251
  },
258
252
  "donut": {
259
253
  "description": "Pie chart donut settings.",
260
- "kind": "object",
261
254
  "entries": {
262
255
  "showAsDonut": {
263
256
  "description": "Set to present the pie chart as a donut.",
264
257
  "defaultValue": false,
265
258
  "type": "boolean"
266
259
  }
267
- }
260
+ },
261
+ "kind": "object"
268
262
  },
269
263
  "footnote": {
270
264
  "description": "Visualization footnote.",
@@ -278,12 +272,10 @@
278
272
  {
279
273
  "type": "StringExpression"
280
274
  }
281
- ],
282
- "type": "any"
275
+ ]
283
276
  },
284
277
  "legend": {
285
278
  "description": "Legend settings.",
286
- "kind": "object",
287
279
  "entries": {
288
280
  "dock": {
289
281
  "description": "Sets the legend position.",
@@ -310,8 +302,7 @@
310
302
  "kind": "literal",
311
303
  "value": "'top'"
312
304
  }
313
- ],
314
- "type": "string"
305
+ ]
315
306
  },
316
307
  "show": {
317
308
  "description": "Set to show the legend.",
@@ -323,7 +314,8 @@
323
314
  "defaultValue": true,
324
315
  "type": "boolean"
325
316
  }
326
- }
317
+ },
318
+ "kind": "object"
327
319
  },
328
320
  "qHyperCubeDef": {
329
321
  "description": "Extends `HyperCubeDef`, see Engine API: `HyperCubeDef`.",
@@ -359,7 +351,7 @@
359
351
  "showDetails": {
360
352
  "description": "Show visualization details toggle",
361
353
  "optional": true,
362
- "defaultValue": false,
354
+ "defaultValue": true,
363
355
  "type": "boolean"
364
356
  },
365
357
  "showDisclaimer": {
@@ -385,8 +377,7 @@
385
377
  {
386
378
  "type": "StringExpression"
387
379
  }
388
- ],
389
- "type": "any"
380
+ ]
390
381
  },
391
382
  "title": {
392
383
  "description": "Visualization title.",
@@ -400,12 +391,10 @@
400
391
  {
401
392
  "type": "StringExpression"
402
393
  }
403
- ],
404
- "type": "any"
394
+ ]
405
395
  },
406
396
  "tooltip": {
407
397
  "description": "Custom tooltip properties",
408
- "kind": "object",
409
398
  "entries": {
410
399
  "auto": {
411
400
  "description": "Toggle for using custom tooltip or regular tooltip",
@@ -419,14 +408,14 @@
419
408
  },
420
409
  "data": {
421
410
  "description": "Data for the custom tooltip.",
422
- "kind": "object",
423
411
  "entries": {
424
412
  "qHyperCubeDef": {
425
413
  "description": "A hypercube definition containing measures to be displayed in the custom tooltip.\nExtends `HyperCubeDef`, see Engine API: `HyperCubeDef`.",
426
414
  "defaultValue": "undefined",
427
415
  "type": "HyperCubeDef"
428
416
  }
429
- }
417
+ },
418
+ "kind": "object"
430
419
  },
431
420
  "hideBasic": {
432
421
  "description": "Toggle for hiding basic information from custom tooltip",
@@ -441,7 +430,8 @@
441
430
  "type": "#/definitions/ImageComponent"
442
431
  }
443
432
  }
444
- }
433
+ },
434
+ "kind": "object"
445
435
  },
446
436
  "version": {
447
437
  "description": "Current version of this generic object definition",
@@ -467,16 +457,18 @@
467
457
  }
468
458
  },
469
459
  "AttributeExpressionProperties": {
470
- "kind": "union",
471
- "items": [
472
- {
473
- "type": "#/definitions/ColorAttributes"
474
- },
475
- {
476
- "type": "#/definitions/CustomTooltipAttributes"
477
- }
478
- ],
479
- "type": "any"
460
+ "kind": "alias",
461
+ "items": {
462
+ "kind": "union",
463
+ "items": [
464
+ {
465
+ "type": "#/definitions/ColorAttributes"
466
+ },
467
+ {
468
+ "type": "#/definitions/CustomTooltipAttributes"
469
+ }
470
+ ]
471
+ }
480
472
  },
481
473
  "byDimDef": {
482
474
  "description": "Settings when coloring by dimension (`\"mode\": \"byDimension\"`)",
@@ -501,8 +493,7 @@
501
493
  "kind": "literal",
502
494
  "value": "'libraryItem'"
503
495
  }
504
- ],
505
- "type": "string"
496
+ ]
506
497
  }
507
498
  }
508
499
  },
@@ -529,8 +520,7 @@
529
520
  "kind": "literal",
530
521
  "value": "'libraryItem'"
531
522
  }
532
- ],
533
- "type": "string"
523
+ ]
534
524
  }
535
525
  }
536
526
  },
@@ -549,9 +539,6 @@
549
539
  }
550
540
  }
551
541
  },
552
- "Component": {
553
- "type": "#/definitions/Slices"
554
- },
555
542
  "CustomTooltipAttributes": {
556
543
  "description": "Extends `NxAttrExprDef`, see Engine API: `NxAttrExprDef`.",
557
544
  "extends": [
@@ -577,8 +564,7 @@
577
564
  "kind": "literal",
578
565
  "value": "'customTooltipExpression'"
579
566
  }
580
- ],
581
- "type": "string"
567
+ ]
582
568
  }
583
569
  },
584
570
  "examples": [
@@ -609,14 +595,6 @@
609
595
  "description": "Image component information structure.",
610
596
  "kind": "object",
611
597
  "entries": {
612
- "type": {
613
- "description": "Input type as 'url' or 'media library'",
614
- "type": "string"
615
- },
616
- "size": {
617
- "description": "Size as 'small','medium','large' or 'original'",
618
- "type": "string"
619
- },
620
598
  "cId": {
621
599
  "description": "Identifier of the image component - used as a link with an attribute expression",
622
600
  "type": "string"
@@ -634,8 +612,15 @@
634
612
  {
635
613
  "type": "#/definitions/MediaLibraryRef"
636
614
  }
637
- ],
638
- "type": "any"
615
+ ]
616
+ },
617
+ "size": {
618
+ "description": "Size as 'small','medium','large' or 'original'",
619
+ "type": "string"
620
+ },
621
+ "type": {
622
+ "description": "Input type as 'url' or 'media library'",
623
+ "type": "string"
639
624
  }
640
625
  }
641
626
  },
@@ -648,16 +633,6 @@
648
633
  ],
649
634
  "kind": "object",
650
635
  "entries": {
651
- "autoSort": {
652
- "description": "Set to automatically sort the dimension.",
653
- "optional": true,
654
- "type": "boolean"
655
- },
656
- "cId": {
657
- "description": "ID used by the Qlik Sense. Must be unique within the current chart.",
658
- "optional": true,
659
- "type": "string"
660
- },
661
636
  "othersLabel": {
662
637
  "kind": "union",
663
638
  "items": [
@@ -667,8 +642,17 @@
667
642
  {
668
643
  "type": "StringExpression"
669
644
  }
670
- ],
671
- "type": "any"
645
+ ]
646
+ },
647
+ "autoSort": {
648
+ "description": "Set to automatically sort the dimension.",
649
+ "optional": true,
650
+ "type": "boolean"
651
+ },
652
+ "cId": {
653
+ "description": "ID used by the Qlik Sense. Must be unique within the current chart.",
654
+ "optional": true,
655
+ "type": "string"
672
656
  }
673
657
  }
674
658
  },
@@ -681,16 +665,6 @@
681
665
  ],
682
666
  "kind": "object",
683
667
  "entries": {
684
- "autoSort": {
685
- "description": "Set to automatically sort the measure.",
686
- "optional": true,
687
- "type": "boolean"
688
- },
689
- "cId": {
690
- "description": "ID used by the Qlik Sense. Must be unique within the current chart.",
691
- "optional": true,
692
- "type": "string"
693
- },
694
668
  "isCustomFormatted": {
695
669
  "description": "Set to true to toggle off the default client formatting.",
696
670
  "type": "boolean"
@@ -709,8 +683,17 @@
709
683
  {
710
684
  "type": "StringExpression"
711
685
  }
712
- ],
713
- "type": "any"
686
+ ]
687
+ },
688
+ "autoSort": {
689
+ "description": "Set to automatically sort the measure.",
690
+ "optional": true,
691
+ "type": "boolean"
692
+ },
693
+ "cId": {
694
+ "description": "ID used by the Qlik Sense. Must be unique within the current chart.",
695
+ "optional": true,
696
+ "type": "string"
714
697
  }
715
698
  }
716
699
  },
@@ -718,13 +701,13 @@
718
701
  "description": "Chart component information structure.",
719
702
  "kind": "object",
720
703
  "entries": {
721
- "style": {
722
- "description": "Object containing the styles of the chart such as 'size'",
723
- "type": "#/definitions/MasterVisualizationChartStyle"
724
- },
725
704
  "object": {
726
705
  "description": "Object containing the information fo the visualization, such as refId in case of master visualization",
727
706
  "type": "#/definitions/MasterVisualizationChartObject"
707
+ },
708
+ "style": {
709
+ "description": "Object containing the styles of the chart such as 'size'",
710
+ "type": "#/definitions/MasterVisualizationChartStyle"
728
711
  }
729
712
  }
730
713
  },
@@ -817,6 +800,16 @@
817
800
  "SlicesStyling": {
818
801
  "kind": "object",
819
802
  "entries": {
803
+ "cornerRadius": {
804
+ "description": "A number between 0 and 40.",
805
+ "defaultValue": 0,
806
+ "type": "number"
807
+ },
808
+ "innerRadius": {
809
+ "description": "A number between 0.05 and 0.75. Only applicable for \"donut\" representation.",
810
+ "defaultValue": 0.55,
811
+ "type": "number"
812
+ },
820
813
  "strokeColor": {
821
814
  "description": "index: -1, color: '#ffffff' }\"",
822
815
  "defaultValue": "\"{",
@@ -843,18 +836,7 @@
843
836
  "kind": "literal",
844
837
  "value": "'large'"
845
838
  }
846
- ],
847
- "type": "string"
848
- },
849
- "cornerRadius": {
850
- "description": "A number between 0 and 40.",
851
- "defaultValue": 0,
852
- "type": "number"
853
- },
854
- "innerRadius": {
855
- "description": "A number between 0.05 and 0.75. Only applicable for \"donut\" representation.",
856
- "defaultValue": 0.55,
857
- "type": "number"
839
+ ]
858
840
  }
859
841
  }
860
842
  }