survey-analytics 1.9.89 → 1.9.91

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.
Files changed (116) hide show
  1. package/LICENSE +2 -2
  2. package/package.json +6 -20
  3. package/survey-analytics-datatables.types/analytics-localization/arabic.d.ts +66 -0
  4. package/survey-analytics-datatables.types/analytics-localization/dutch.d.ts +49 -0
  5. package/survey-analytics-datatables.types/analytics-localization/english.d.ts +70 -0
  6. package/survey-analytics-datatables.types/analytics-localization/farsi.d.ts +20 -0
  7. package/survey-analytics-datatables.types/analytics-localization/french.d.ts +46 -0
  8. package/survey-analytics-datatables.types/analytics-localization/german.d.ts +52 -0
  9. package/survey-analytics-datatables.types/analytics-localization/norwegian.d.ts +39 -0
  10. package/survey-analytics-datatables.types/analytics-localization/portuguese.d.ts +70 -0
  11. package/survey-analytics-datatables.types/analytics-localization/russian.d.ts +34 -0
  12. package/survey-analytics-datatables.types/entries/datatables.d.ts +17 -0
  13. package/survey-analytics-datatables.types/localizationManager.d.ts +85 -0
  14. package/survey-analytics-datatables.types/tables/columnbuilder.d.ts +38 -0
  15. package/survey-analytics-datatables.types/tables/columns.d.ts +71 -0
  16. package/survey-analytics-datatables.types/tables/config.d.ts +39 -0
  17. package/survey-analytics-datatables.types/tables/datatables.d.ts +51 -0
  18. package/survey-analytics-datatables.types/tables/extensions/columnextensions.d.ts +1 -0
  19. package/survey-analytics-datatables.types/tables/extensions/detailsextensions.d.ts +13 -0
  20. package/survey-analytics-datatables.types/tables/extensions/headerextensions.d.ts +1 -0
  21. package/survey-analytics-datatables.types/tables/extensions/rowextensions.d.ts +1 -0
  22. package/survey-analytics-datatables.types/tables/extensions/tableextensions.d.ts +22 -0
  23. package/survey-analytics-datatables.types/tables/table.d.ts +153 -0
  24. package/survey-analytics-datatables.types/utils/index.d.ts +37 -0
  25. package/survey-analytics-tabulator.types/analytics-localization/arabic.d.ts +66 -0
  26. package/survey-analytics-tabulator.types/analytics-localization/dutch.d.ts +49 -0
  27. package/survey-analytics-tabulator.types/analytics-localization/english.d.ts +70 -0
  28. package/survey-analytics-tabulator.types/analytics-localization/farsi.d.ts +20 -0
  29. package/survey-analytics-tabulator.types/analytics-localization/french.d.ts +46 -0
  30. package/survey-analytics-tabulator.types/analytics-localization/german.d.ts +52 -0
  31. package/survey-analytics-tabulator.types/analytics-localization/norwegian.d.ts +39 -0
  32. package/survey-analytics-tabulator.types/analytics-localization/portuguese.d.ts +70 -0
  33. package/survey-analytics-tabulator.types/analytics-localization/russian.d.ts +34 -0
  34. package/survey-analytics-tabulator.types/entries/tabulator.d.ts +17 -0
  35. package/survey-analytics-tabulator.types/localizationManager.d.ts +85 -0
  36. package/survey-analytics-tabulator.types/tables/columnbuilder.d.ts +38 -0
  37. package/survey-analytics-tabulator.types/tables/columns.d.ts +71 -0
  38. package/survey-analytics-tabulator.types/tables/config.d.ts +39 -0
  39. package/survey-analytics-tabulator.types/tables/custom_jspdf_font.d.ts +1 -0
  40. package/survey-analytics-tabulator.types/tables/extensions/columnextensions.d.ts +1 -0
  41. package/survey-analytics-tabulator.types/tables/extensions/detailsextensions.d.ts +13 -0
  42. package/survey-analytics-tabulator.types/tables/extensions/headerextensions.d.ts +1 -0
  43. package/survey-analytics-tabulator.types/tables/extensions/rowextensions.d.ts +1 -0
  44. package/survey-analytics-tabulator.types/tables/extensions/tableextensions.d.ts +22 -0
  45. package/survey-analytics-tabulator.types/tables/table.d.ts +153 -0
  46. package/survey-analytics-tabulator.types/tables/tabulator.d.ts +83 -0
  47. package/survey-analytics-tabulator.types/utils/index.d.ts +37 -0
  48. package/survey-analytics.types/alternativeVizualizersWrapper.d.ts +41 -0
  49. package/survey-analytics.types/analytics-localization/arabic.d.ts +66 -0
  50. package/survey-analytics.types/analytics-localization/dutch.d.ts +49 -0
  51. package/survey-analytics.types/analytics-localization/english.d.ts +70 -0
  52. package/survey-analytics.types/analytics-localization/farsi.d.ts +20 -0
  53. package/survey-analytics.types/analytics-localization/french.d.ts +46 -0
  54. package/survey-analytics.types/analytics-localization/german.d.ts +52 -0
  55. package/survey-analytics.types/analytics-localization/italian.d.ts +69 -0
  56. package/survey-analytics.types/analytics-localization/norwegian.d.ts +39 -0
  57. package/survey-analytics.types/analytics-localization/portuguese.d.ts +70 -0
  58. package/survey-analytics.types/analytics-localization/russian.d.ts +34 -0
  59. package/survey-analytics.types/analytics-localization/spanish.d.ts +51 -0
  60. package/survey-analytics.types/boolean.d.ts +16 -0
  61. package/survey-analytics.types/choices-table.d.ts +17 -0
  62. package/survey-analytics.types/config.d.ts +38 -0
  63. package/survey-analytics.types/dataProvider.d.ts +40 -0
  64. package/survey-analytics.types/entries/summary.d.ts +30 -0
  65. package/survey-analytics.types/filterInfo.d.ts +11 -0
  66. package/survey-analytics.types/histogram.d.ts +38 -0
  67. package/survey-analytics.types/layoutEngine.d.ts +40 -0
  68. package/survey-analytics.types/localizationManager.d.ts +85 -0
  69. package/survey-analytics.types/matrix.d.ts +17 -0
  70. package/survey-analytics.types/matrixDropdownGrouped.d.ts +14 -0
  71. package/survey-analytics.types/number.d.ts +25 -0
  72. package/survey-analytics.types/plotly/boolean.d.ts +16 -0
  73. package/survey-analytics.types/plotly/histogram.d.ts +12 -0
  74. package/survey-analytics.types/plotly/index.d.ts +8 -0
  75. package/survey-analytics.types/plotly/matrix.d.ts +11 -0
  76. package/survey-analytics.types/plotly/matrixdropdown-grouped.d.ts +11 -0
  77. package/survey-analytics.types/plotly/ranking.d.ts +7 -0
  78. package/survey-analytics.types/plotly/rating.d.ts +20 -0
  79. package/survey-analytics.types/plotly/selectBase.d.ts +24 -0
  80. package/survey-analytics.types/plotly/setup.d.ts +29 -0
  81. package/survey-analytics.types/selectBase.d.ts +112 -0
  82. package/survey-analytics.types/text.d.ts +21 -0
  83. package/survey-analytics.types/utils/index.d.ts +37 -0
  84. package/survey-analytics.types/visualizationManager.d.ts +52 -0
  85. package/survey-analytics.types/visualizationMatrixDropdown.d.ts +23 -0
  86. package/survey-analytics.types/visualizationMatrixDynamic.d.ts +9 -0
  87. package/survey-analytics.types/visualizationPanel.d.ts +371 -0
  88. package/survey-analytics.types/visualizationPanelDynamic.d.ts +23 -0
  89. package/survey-analytics.types/visualizerBase.d.ts +257 -0
  90. package/survey-analytics.types/visualizerFactory.d.ts +20 -0
  91. package/survey-analytics.types/wordcloud/stopwords/dutch.d.ts +1 -0
  92. package/survey-analytics.types/wordcloud/stopwords/english.d.ts +1 -0
  93. package/survey-analytics.types/wordcloud/stopwords/index.d.ts +3 -0
  94. package/survey-analytics.types/wordcloud/stopwords/norwegian.d.ts +1 -0
  95. package/survey-analytics.types/wordcloud/stopwords/spanish.d.ts +1 -0
  96. package/survey-analytics.types/wordcloud/wordcloud.d.ts +25 -0
  97. package/survey.analytics.css +1 -1
  98. package/survey.analytics.d.ts +1 -2133
  99. package/survey.analytics.datatables/index.d.ts.d.ts +891 -0
  100. package/survey.analytics.datatables/survey.analytics.datatables.css +325 -0
  101. package/survey.analytics.datatables/survey.analytics.datatables.js +38982 -0
  102. package/survey.analytics.datatables/survey.analytics.datatables.min.css +7 -0
  103. package/survey.analytics.datatables/survey.analytics.datatables.min.js +29 -0
  104. package/survey.analytics.datatables.css +1 -1
  105. package/survey.analytics.datatables.d.ts +1 -1012
  106. package/survey.analytics.datatables.js +1 -1
  107. package/survey.analytics.datatables.min.css +1 -1
  108. package/survey.analytics.datatables.min.js +1 -1
  109. package/survey.analytics.js +40 -2
  110. package/survey.analytics.min.css +1 -1
  111. package/survey.analytics.min.js +1 -1
  112. package/survey.analytics.tabulator.css +1 -1
  113. package/survey.analytics.tabulator.d.ts +1 -1047
  114. package/survey.analytics.tabulator.js +1 -1
  115. package/survey.analytics.tabulator.min.css +1 -1
  116. package/survey.analytics.tabulator.min.js +1 -1
@@ -1,2133 +1 @@
1
- declare module "analytics-localization/english" {
2
- export var englishStrings: {
3
- groupButton: string;
4
- ungroupButton: string;
5
- selectButton: string;
6
- hideColumn: string;
7
- showColumn: string;
8
- makePrivateColumn: string;
9
- makePublicColumn: string;
10
- moveToDetail: string;
11
- showAsColumn: string;
12
- filterPlaceholder: string;
13
- removeRows: string;
14
- showLabel: string;
15
- entriesLabel: string;
16
- visualizer_text: string;
17
- visualizer_wordcloud: string;
18
- visualizer_histogram: string;
19
- visualizer_number: string;
20
- visualizer_choices: string;
21
- visualizer_selectBase: string;
22
- chartType_bar: string;
23
- chartType_vbar: string;
24
- chartType_stackedbar: string;
25
- chartType_doughnut: string;
26
- chartType_pie: string;
27
- chartType_scatter: string;
28
- chartType_gauge: string;
29
- chartType_bullet: string;
30
- hideButton: string;
31
- makePrivateButton: string;
32
- makePublicButton: string;
33
- showButton: string;
34
- filter: string;
35
- resetFilter: string;
36
- changeLocale: string;
37
- en: string;
38
- fr: string;
39
- ru: string;
40
- de: string;
41
- clearButton: string;
42
- addElement: string;
43
- defaultOrder: string;
44
- ascOrder: string;
45
- descOrder: string;
46
- showMinorColumns: string;
47
- otherCommentTitle: string;
48
- showPercentages: string;
49
- hidePercentages: string;
50
- pdfDownloadCaption: string;
51
- xlsxDownloadCaption: string;
52
- csvDownloadCaption: string;
53
- saveDiagramAsPNG: string;
54
- hideEmptyAnswers: string;
55
- showEmptyAnswers: string;
56
- "topNValueText-1": string;
57
- topNValueText5: string;
58
- topNValueText10: string;
59
- topNValueText20: string;
60
- hideMissingAnswers: string;
61
- showMissingAnswers: string;
62
- missingAnswersLabel: string;
63
- noVisualizerForQuestion: string;
64
- noResults: string;
65
- showPerValues: string;
66
- showPerColumns: string;
67
- answer: string;
68
- correctAnswer: string;
69
- percent: string;
70
- responses: string;
71
- };
72
- }
73
- declare module "localizationManager" {
74
- export var localization: {
75
- currentLocaleValue: string;
76
- defaultLocaleValue: string;
77
- locales: {
78
- [index: string]: any;
79
- };
80
- localeNames: {
81
- [index: string]: any;
82
- };
83
- supportedLocales: any[];
84
- currentLocale: string;
85
- defaultLocale: string;
86
- getString: (strName: string) => any;
87
- getLocales: () => Array<string>;
88
- };
89
- export var surveyStrings: {
90
- groupButton: string;
91
- ungroupButton: string;
92
- selectButton: string;
93
- hideColumn: string;
94
- showColumn: string;
95
- makePrivateColumn: string;
96
- makePublicColumn: string;
97
- moveToDetail: string;
98
- showAsColumn: string;
99
- filterPlaceholder: string;
100
- removeRows: string;
101
- showLabel: string;
102
- entriesLabel: string;
103
- visualizer_text: string;
104
- visualizer_wordcloud: string;
105
- visualizer_histogram: string;
106
- visualizer_number: string;
107
- visualizer_choices: string;
108
- visualizer_selectBase: string;
109
- chartType_bar: string;
110
- chartType_vbar: string;
111
- chartType_stackedbar: string;
112
- chartType_doughnut: string;
113
- chartType_pie: string;
114
- chartType_scatter: string;
115
- chartType_gauge: string;
116
- chartType_bullet: string;
117
- hideButton: string;
118
- makePrivateButton: string;
119
- makePublicButton: string;
120
- showButton: string;
121
- filter: string;
122
- resetFilter: string;
123
- changeLocale: string;
124
- en: string;
125
- fr: string;
126
- ru: string;
127
- de: string;
128
- clearButton: string;
129
- addElement: string;
130
- defaultOrder: string;
131
- ascOrder: string;
132
- descOrder: string;
133
- showMinorColumns: string;
134
- otherCommentTitle: string;
135
- showPercentages: string;
136
- hidePercentages: string;
137
- pdfDownloadCaption: string;
138
- xlsxDownloadCaption: string;
139
- csvDownloadCaption: string;
140
- saveDiagramAsPNG: string;
141
- hideEmptyAnswers: string;
142
- showEmptyAnswers: string;
143
- "topNValueText-1": string;
144
- topNValueText5: string;
145
- topNValueText10: string;
146
- topNValueText20: string;
147
- hideMissingAnswers: string;
148
- showMissingAnswers: string;
149
- missingAnswersLabel: string;
150
- noVisualizerForQuestion: string;
151
- noResults: string;
152
- showPerValues: string;
153
- showPerColumns: string;
154
- answer: string;
155
- correctAnswer: string;
156
- percent: string;
157
- responses: string;
158
- };
159
- }
160
- declare module "analytics-localization/farsi" {
161
- export var farsiStrings: {
162
- groupButton: string;
163
- ungroupButton: string;
164
- selectButton: string;
165
- hideColumn: string;
166
- showColumn: string;
167
- moveToDetail: string;
168
- showAsColumn: string;
169
- visualizer_text: string;
170
- visualizer_wordcloud: string;
171
- chartType_bar: string;
172
- chartType_pie: string;
173
- chartType_scatter: string;
174
- chartType_gauge: string;
175
- chartType_bullet: string;
176
- hideButton: string;
177
- resetFilter: string;
178
- clearButton: string;
179
- addElement: string;
180
- };
181
- }
182
- declare module "analytics-localization/french" {
183
- export var frenchStrings: {
184
- groupButton: string;
185
- ungroupButton: string;
186
- selectButton: string;
187
- hideColumn: string;
188
- showColumn: string;
189
- makePrivateColumn: string;
190
- makePublicColumn: string;
191
- moveToDetail: string;
192
- showAsColumn: string;
193
- filterPlaceholder: string;
194
- removeRows: string;
195
- showLabel: string;
196
- entriesLabel: string;
197
- visualizer_text: string;
198
- visualizer_wordcloud: string;
199
- chartType_bar: string;
200
- chartType_stackedbar: string;
201
- chartType_doughnut: string;
202
- chartType_pie: string;
203
- chartType_scatter: string;
204
- chartType_gauge: string;
205
- chartType_bullet: string;
206
- filter: string;
207
- hideButton: string;
208
- saveDiagramAsPNG: string;
209
- makePrivateButton: string;
210
- makePublicButton: string;
211
- showButton: string;
212
- resetFilter: string;
213
- clearButton: string;
214
- addElement: string;
215
- defaultOrder: string;
216
- ascOrder: string;
217
- descOrder: string;
218
- showMinorColumns: string;
219
- otherCommentTitle: string;
220
- noVisualizerForQuestion: string;
221
- noResults: string;
222
- showPerValues: string;
223
- showPerColumns: string;
224
- answer: string;
225
- correctAnswer: string;
226
- percent: string;
227
- responses: string;
228
- };
229
- }
230
- declare module "analytics-localization/german" {
231
- export var germanStrings: {
232
- groupButton: string;
233
- ungroupButton: string;
234
- selectButton: string;
235
- hideColumn: string;
236
- showColumn: string;
237
- makePrivateColumn: string;
238
- makePublicColumn: string;
239
- moveToDetail: string;
240
- showAsColumn: string;
241
- filterPlaceholder: string;
242
- removeRows: string;
243
- showLabel: string;
244
- entriesLabel: string;
245
- visualizer_text: string;
246
- visualizer_wordcloud: string;
247
- chartType_bar: string;
248
- chartType_stackedbar: string;
249
- chartType_doughnut: string;
250
- chartType_pie: string;
251
- chartType_scatter: string;
252
- chartType_gauge: string;
253
- chartType_bullet: string;
254
- hideButton: string;
255
- makePrivateButton: string;
256
- makePublicButton: string;
257
- showButton: string;
258
- filter: string;
259
- resetFilter: string;
260
- changeLocale: string;
261
- clearButton: string;
262
- addElement: string;
263
- defaultOrder: string;
264
- ascOrder: string;
265
- descOrder: string;
266
- showMinorColumns: string;
267
- otherCommentTitle: string;
268
- showPercentages: string;
269
- hidePercentages: string;
270
- pdfDownloadCaption: string;
271
- xlsxDownloadCaption: string;
272
- csvDownloadCaption: string;
273
- saveDiagramAsPNG: string;
274
- hideEmptyAnswers: string;
275
- showEmptyAnswers: string;
276
- "topNValueText-1": string;
277
- topNValueText5: string;
278
- topNValueText10: string;
279
- topNValueText20: string;
280
- noVisualizerForQuestion: string;
281
- noResults: string;
282
- };
283
- }
284
- declare module "analytics-localization/norwegian" {
285
- export var norwegianStrings: {
286
- groupButton: string;
287
- ungroupButton: string;
288
- selectButton: string;
289
- hideColumn: string;
290
- showColumn: string;
291
- makePrivateColumn: string;
292
- makePublicColumn: string;
293
- moveToDetail: string;
294
- showAsColumn: string;
295
- filterPlaceholder: string;
296
- removeRows: string;
297
- showLabel: string;
298
- entriesLabel: string;
299
- visualizer_text: string;
300
- visualizer_wordcloud: string;
301
- chartType_bar: string;
302
- chartType_stackedbar: string;
303
- chartType_doughnut: string;
304
- chartType_pie: string;
305
- chartType_scatter: string;
306
- chartType_gauge: string;
307
- chartType_bullet: string;
308
- hideButton: string;
309
- makePrivateButton: string;
310
- makePublicButton: string;
311
- showButton: string;
312
- resetFilter: string;
313
- changeLocale: string;
314
- clearButton: string;
315
- addElement: string;
316
- defaultOrder: string;
317
- ascOrder: string;
318
- descOrder: string;
319
- showMinorColumns: string;
320
- otherCommentTitle: string;
321
- showPercentages: string;
322
- hidePercentages: string;
323
- };
324
- }
325
- declare module "analytics-localization/portuguese" {
326
- export var portugueseStrings: {
327
- groupButton: string;
328
- ungroupButton: string;
329
- selectButton: string;
330
- hideColumn: string;
331
- showColumn: string;
332
- makePrivateColumn: string;
333
- makePublicColumn: string;
334
- moveToDetail: string;
335
- showAsColumn: string;
336
- filterPlaceholder: string;
337
- removeRows: string;
338
- showLabel: string;
339
- entriesLabel: string;
340
- visualizer_text: string;
341
- visualizer_wordcloud: string;
342
- visualizer_histogram: string;
343
- visualizer_number: string;
344
- visualizer_choices: string;
345
- visualizer_selectBase: string;
346
- chartType_bar: string;
347
- chartType_vbar: string;
348
- chartType_stackedbar: string;
349
- chartType_doughnut: string;
350
- chartType_pie: string;
351
- chartType_scatter: string;
352
- chartType_gauge: string;
353
- chartType_bullet: string;
354
- hideButton: string;
355
- makePrivateButton: string;
356
- makePublicButton: string;
357
- showButton: string;
358
- filter: string;
359
- resetFilter: string;
360
- changeLocale: string;
361
- en: string;
362
- fr: string;
363
- ru: string;
364
- de: string;
365
- clearButton: string;
366
- addElement: string;
367
- defaultOrder: string;
368
- ascOrder: string;
369
- descOrder: string;
370
- showMinorColumns: string;
371
- otherCommentTitle: string;
372
- showPercentages: string;
373
- hidePercentages: string;
374
- pdfDownloadCaption: string;
375
- xlsxDownloadCaption: string;
376
- csvDownloadCaption: string;
377
- saveDiagramAsPNG: string;
378
- hideEmptyAnswers: string;
379
- showEmptyAnswers: string;
380
- "topNValueText-1": string;
381
- topNValueText5: string;
382
- topNValueText10: string;
383
- topNValueText20: string;
384
- hideMissingAnswers: string;
385
- showMissingAnswers: string;
386
- missingAnswersLabel: string;
387
- noVisualizerForQuestion: string;
388
- noResults: string;
389
- showPerValues: string;
390
- showPerColumns: string;
391
- answer: string;
392
- correctAnswer: string;
393
- percent: string;
394
- responses: string;
395
- };
396
- }
397
- declare module "analytics-localization/russian" {
398
- export var russianStrings: {
399
- groupButton: string;
400
- ungroupButton: string;
401
- selectButton: string;
402
- hideColumn: string;
403
- showColumn: string;
404
- makePrivateColumn: string;
405
- makePublicColumn: string;
406
- moveToDetail: string;
407
- filter: string;
408
- showAsColumn: string;
409
- visualizer_text: string;
410
- visualizer_wordcloud: string;
411
- chartType_bar: string;
412
- chartType_stackedbar: string;
413
- chartType_doughnut: string;
414
- chartType_pie: string;
415
- chartType_scatter: string;
416
- chartType_gauge: string;
417
- chartType_bullet: string;
418
- hideButton: string;
419
- showButton: string;
420
- resetFilter: string;
421
- changeLocale: string;
422
- clearButton: string;
423
- addElement: string;
424
- defaultOrder: string;
425
- ascOrder: string;
426
- descOrder: string;
427
- showMinorColumns: string;
428
- otherCommentTitle: string;
429
- noVisualizerForQuestion: string;
430
- noResults: string;
431
- };
432
- }
433
- declare module "analytics-localization/dutch" {
434
- export var dutchStrings: {
435
- groupButton: string;
436
- ungroupButton: string;
437
- selectButton: string;
438
- hideColumn: string;
439
- showColumn: string;
440
- makePrivateColumn: string;
441
- makePublicColumn: string;
442
- moveToDetail: string;
443
- showAsColumn: string;
444
- filterPlaceholder: string;
445
- removeRows: string;
446
- showLabel: string;
447
- entriesLabel: string;
448
- visualizer_text: string;
449
- visualizer_wordcloud: string;
450
- chartType_bar: string;
451
- chartType_stackedbar: string;
452
- chartType_doughnut: string;
453
- chartType_pie: string;
454
- chartType_scatter: string;
455
- chartType_gauge: string;
456
- chartType_bullet: string;
457
- hideButton: string;
458
- makePrivateButton: string;
459
- makePublicButton: string;
460
- showButton: string;
461
- resetFilter: string;
462
- changeLocale: string;
463
- clearButton: string;
464
- addElement: string;
465
- defaultOrder: string;
466
- ascOrder: string;
467
- descOrder: string;
468
- showMinorColumns: string;
469
- otherCommentTitle: string;
470
- showPercentages: string;
471
- hidePercentages: string;
472
- pdfDownloadCaption: string;
473
- xlsxDownloadCaption: string;
474
- csvDownloadCaption: string;
475
- saveDiagramAsPNG: string;
476
- hideEmptyAnswers: string;
477
- showEmptyAnswers: string;
478
- "topNValueText-1": string;
479
- topNValueText5: string;
480
- topNValueText10: string;
481
- topNValueText20: string;
482
- };
483
- }
484
- declare module "analytics-localization/spanish" {
485
- export var spanishStrings: {
486
- ungroupButton: string;
487
- selectButton: string;
488
- hideColumn: string;
489
- showColumn: string;
490
- makePrivateColumn: string;
491
- makePublicColumn: string;
492
- moveToDetail: string;
493
- showAsColumn: string;
494
- filterPlaceholder: string;
495
- removeRows: string;
496
- showLabel: string;
497
- entryLabel: string;
498
- visualizer_text: string;
499
- visualizer_wordcloud: string;
500
- chartType_bar: string;
501
- chartType_stackedbar: string;
502
- chartType_doughnut: string;
503
- chartType_pie: string;
504
- chartType_scatter: string;
505
- chartType_gauge: string;
506
- chartType_bullet: string;
507
- hideButton: string;
508
- makePrivateButton: string;
509
- makePublicButton: string;
510
- showButton: string;
511
- filter: string;
512
- resetFilter: string;
513
- changeLocale: string;
514
- clearButton: string;
515
- addElement: string;
516
- defaultOrder: string;
517
- ascOrder: string;
518
- descOrder: string;
519
- showMinorColumns: string;
520
- otherCommentTitle: string;
521
- showPercentages: string;
522
- hidePercentages: string;
523
- pdfDownloadCaption: string;
524
- xlsxDownloadCaption: string;
525
- csvDownloadCaption: string;
526
- saveDiagramAsPNG: string;
527
- hideEmptyAnswers: string;
528
- showEmptyAnswers: string;
529
- "topNValueText-1": string;
530
- topNValueText5: string;
531
- topNValueText10: string;
532
- topNValueText20: string;
533
- noVisualizerForQuestion: string;
534
- noResults: string;
535
- };
536
- }
537
- declare module "analytics-localization/italian" {
538
- export var italianStrings: {
539
- groupButton: string;
540
- ungroupButton: string;
541
- selectButton: string;
542
- hideColumn: string;
543
- showColumn: string;
544
- makePrivateColumn: string;
545
- makePublicColumn: string;
546
- moveToDetail: string;
547
- showAsColumn: string;
548
- filterPlaceholder: string;
549
- removeRows: string;
550
- showLabel: string;
551
- entriesLabel: string;
552
- visualizer_text: string;
553
- visualizer_wordcloud: string;
554
- visualizer_histogram: string;
555
- visualizer_number: string;
556
- visualizer_choices: string;
557
- visualizer_selectBase: string;
558
- chartType_bar: string;
559
- chartType_vbar: string;
560
- chartType_stackedbar: string;
561
- chartType_doughnut: string;
562
- chartType_pie: string;
563
- chartType_scatter: string;
564
- chartType_gauge: string;
565
- chartType_bullet: string;
566
- hideButton: string;
567
- makePrivateButton: string;
568
- makePublicButton: string;
569
- showButton: string;
570
- filter: string;
571
- resetFilter: string;
572
- changeLocale: string;
573
- en: string;
574
- fr: string;
575
- ru: string;
576
- de: string;
577
- clearButton: string;
578
- addElement: string;
579
- defaultOrder: string;
580
- ascOrder: string;
581
- descOrder: string;
582
- showMinorColumns: string;
583
- otherCommentTitle: string;
584
- showPercentages: string;
585
- hidePercentages: string;
586
- pdfDownloadCaption: string;
587
- xlsxDownloadCaption: string;
588
- csvDownloadCaption: string;
589
- saveDiagramAsPNG: string;
590
- hideEmptyAnswers: string;
591
- showEmptyAnswers: string;
592
- "topNValueText-1": string;
593
- topNValueText5: string;
594
- topNValueText10: string;
595
- topNValueText20: string;
596
- hideMissingAnswers: string;
597
- showMissingAnswers: string;
598
- missingAnswersLabel: string;
599
- noVisualizerForQuestion: string;
600
- noResults: string;
601
- showPerValues: string;
602
- showPerColumns: string;
603
- answer: string;
604
- percent: string;
605
- responses: string;
606
- };
607
- }
608
- declare module "analytics-localization/arabic" {
609
- export var arabicStrings: {
610
- groupButton: string;
611
- ungroupButton: string;
612
- selectButton: string;
613
- hideColumn: string;
614
- showColumn: string;
615
- makePrivateColumn: string;
616
- makePublicColumn: string;
617
- moveToDetail: string;
618
- showAsColumn: string;
619
- filterPlaceholder: string;
620
- removeRows: string;
621
- showLabel: string;
622
- entriesLabel: string;
623
- visualizer_text: string;
624
- visualizer_wordcloud: string;
625
- visualizer_histogram: string;
626
- visualizer_number: string;
627
- visualizer_choices: string;
628
- visualizer_selectBase: string;
629
- chartType_bar: string;
630
- chartType_vbar: string;
631
- chartType_stackedbar: string;
632
- chartType_doughnut: string;
633
- chartType_pie: string;
634
- chartType_scatter: string;
635
- chartType_gauge: string;
636
- chartType_bullet: string;
637
- hideButton: string;
638
- makePrivateButton: string;
639
- makePublicButton: string;
640
- showButton: string;
641
- filter: string;
642
- resetFilter: string;
643
- changeLocale: string;
644
- en: string;
645
- fr: string;
646
- ru: string;
647
- de: string;
648
- clearButton: string;
649
- addElement: string;
650
- defaultOrder: string;
651
- ascOrder: string;
652
- descOrder: string;
653
- showMinorColumns: string;
654
- otherCommentTitle: string;
655
- showPercentages: string;
656
- hidePercentages: string;
657
- pdfDownloadCaption: string;
658
- xlsxDownloadCaption: string;
659
- csvDownloadCaption: string;
660
- saveDiagramAsPNG: string;
661
- hideEmptyAnswers: string;
662
- showEmptyAnswers: string;
663
- hideMissingAnswers: string;
664
- showMissingAnswers: string;
665
- missingAnswersLabel: string;
666
- noVisualizerForQuestion: string;
667
- noResults: string;
668
- showPerValues: string;
669
- showPerColumns: string;
670
- answer: string;
671
- correctAnswer: string;
672
- percent: string;
673
- responses: string;
674
- };
675
- }
676
- declare module "dataProvider" {
677
- import { Event } from "survey-core";
678
- export interface IDataInfo {
679
- name: string | Array<string>;
680
- getValues(): Array<any>;
681
- getLabels(): Array<string>;
682
- getSeriesValues(): Array<string>;
683
- getSeriesLabels(): Array<string>;
684
- }
685
- export class DataProvider {
686
- private _data;
687
- private _getDataCore;
688
- static seriesMarkerKey: string;
689
- private _filteredData;
690
- private _statisticsCache;
691
- protected filterValues: {
692
- [index: string]: any;
693
- };
694
- private getStatisticsCacheKey;
695
- constructor(_data?: Array<any>, _getDataCore?: (dataInfo: IDataInfo) => number[][]);
696
- reset(dataInfo?: IDataInfo): void;
697
- get data(): Array<any>;
698
- set data(data: Array<any>);
699
- get filteredData(): {
700
- [index: string]: any;
701
- }[];
702
- /**
703
- * Sets filter by question name and value.
704
- */
705
- setFilter(questionName: string, selectedValue: any): void;
706
- protected getDataCore(dataInfo: IDataInfo): number[][] | number[][][];
707
- /**
708
- * Returns calculated statisctics for the IDataInfo object.
709
- */
710
- getData(dataInfo: IDataInfo): any[];
711
- /**
712
- * Fires when data has been changed.
713
- */
714
- onDataChanged: Event<(sender: DataProvider, options: any) => any, DataProvider, any>;
715
- protected raiseDataChanged(): void;
716
- }
717
- }
718
- declare module "visualizationManager" {
719
- import { Question } from "survey-core";
720
- type VisualizerConstructor = new (question: Question, data: Array<{
721
- [index: string]: any;
722
- }>, options?: Object) => any;
723
- /**
724
- * An object with methods used to register and unregister visualizers for individual question types.
725
- *
726
- * [View Demo](https://surveyjs.io/dashboard/examples/visualize-answers-from-text-entry-fields-with-charts/ (linkStyle))
727
- */
728
- export class VisualizationManager {
729
- static alternativesVisualizer: any;
730
- static vizualizers: {
731
- [index: string]: Array<VisualizerConstructor>;
732
- };
733
- /**
734
- * Registers a visualizer for a specified question type.
735
- *
736
- * [View Demo](https://surveyjs.io/dashboard/examples/visualize-answers-from-text-entry-fields-with-charts/ (linkStyle))
737
- * @param questionType A question [type](https://surveyjs.io/form-library/documentation/api-reference/question#getType).
738
- * @param constructor A function that returns a visualizer constructor to register.
739
- */
740
- static registerVisualizer(questionType: string, constructor: VisualizerConstructor): void;
741
- /**
742
- * Unregisters a visualizer for a specified question type.
743
- *
744
- * [View Demo](https://surveyjs.io/dashboard/examples/visualize-answers-from-text-entry-fields-with-charts/ (linkStyle))
745
- * @param questionType A question [type](https://surveyjs.io/form-library/documentation/api-reference/question#getType).
746
- * @param constructor A function that returns a visualizer constructor to unregister.
747
- */
748
- static unregisterVisualizer(questionType: string, constructor: VisualizerConstructor): void;
749
- /**
750
- * Unregisters a visualizer for all question types.
751
- * @param constructor A function that returns a visualizer constructor to unregister.
752
- */
753
- static unregisterVisualizerForAll(constructor: VisualizerConstructor): void;
754
- /**
755
- * Returns all visualizer constructors for a specified question type.
756
- * @param questionType A question [type](https://surveyjs.io/form-library/documentation/api-reference/question#getType).
757
- */
758
- static getVisualizersByType(questionType: string): VisualizerConstructor[];
759
- /**
760
- * Returns a constructor for an alternative visualizer selector.
761
- * @see registerAlternativesVisualizer
762
- */
763
- static getAlternativesVisualizer(): any;
764
- /**
765
- * Registers an alternative visualizer selector.
766
- * @param constructor A function that returns a constructor for an alternative visualizer selector.
767
- */
768
- static registerAlternativesVisualizer(constructor: any): void;
769
- }
770
- }
771
- declare module "visualizerFactory" {
772
- import { Question } from "survey-core";
773
- import { VisualizerBase } from "visualizerBase";
774
- /**
775
- * An object that allows you to create individual visualizers without creating a [visualization panel](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel).
776
- */
777
- export class VisualizerFactory {
778
- /**
779
- * Creates a visualizer for a specified question.
780
- *
781
- * If a question has more than one [registered](https://surveyjs.io/dashboard/documentation/api-reference/visualizationmanager#registerVisualizer) visualizer, users can switch between them using a drop-down menu.
782
- * @param question A question for which to create a visualizer.
783
- * @param data A data array with survey results to be visualized.
784
- * @param options An object with any custom properties you need within the visualizer.
785
- */
786
- static createVisualizer(question: Question, data: Array<{
787
- [index: string]: any;
788
- }>, options?: {
789
- [index: string]: any;
790
- }): VisualizerBase;
791
- }
792
- }
793
- declare module "utils/index" {
794
- export class DocumentHelper {
795
- static createSelector(options: Array<{
796
- value: string;
797
- text: string;
798
- }>, isSelected: (option: {
799
- value: string;
800
- text: string;
801
- }) => boolean, handler: (e: any) => void): HTMLDivElement;
802
- static createButton(handler: (e: any) => void, text?: string, className?: string): HTMLElement;
803
- static createElement(tagName: string, className?: string, attrs?: any): HTMLElement;
804
- static createSvgElement(path: string): SVGSVGElement;
805
- static createSvgButton(path: string): HTMLButtonElement;
806
- static createSvgToggleButton(svgPath1: string, svPpath2: string, text1: string, text2: string, handler1: (e: any) => any, handler2: (e: any) => any, state?: string, className?: string): HTMLElement;
807
- static createInput(className: string, placeholder?: string, defaultValue?: string): HTMLInputElement;
808
- }
809
- export var options: {
810
- runningInBrowser: boolean;
811
- };
812
- export function allowDomRendering(): boolean;
813
- export function createCommercialLicenseLink(): HTMLElement;
814
- export class DataHelper {
815
- static zipArrays(...arrays: any[]): any[][];
816
- static unzipArrays(zipArray: any[][]): any[][];
817
- static sortDictionary(keys: any[], values: any[], desc: boolean): {
818
- keys: any[];
819
- values: any[];
820
- };
821
- static toPercentage(value: number, maxValue: number): number;
822
- }
823
- export function createLinksContainer(links: Array<{
824
- name: string;
825
- content: any;
826
- }>): HTMLElement;
827
- export function createImagesContainer(links: Array<{
828
- name: string;
829
- content: any;
830
- }>): HTMLElement;
831
- }
832
- declare module "visualizerBase" {
833
- import { Question } from "survey-core";
834
- import { IDataInfo, DataProvider } from "dataProvider";
835
- import { Event } from "survey-core";
836
- /**
837
- * A base object for all visualizers. Use it to implement a custom visualizer.
838
- *
839
- * Constructor parameters:
840
- *
841
- * - `question`: [`Question`](https://surveyjs.io/form-library/documentation/api-reference/question)\
842
- * A survey question to visualize.
843
- * - `data`: `Array<any>`\
844
- * Survey results.
845
- * - `options`\
846
- * An object with the following properties:
847
- * - `seriesValues`: `Array<String>`\
848
- * Series values used to group data.
849
- * - `seriesLabels`: `Array<String>`\
850
- * Series labels to display. If this property is not set, `seriesValues` are used as labels.
851
- * - `survey`: [`SurveyModel`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model)\
852
- * Pass a `SurveyModel` instance if you want to use locales from the survey JSON schema.
853
- * - `dataProvider`: `DataProvider`\
854
- * A data provider for this visualizer.
855
- * - `type`: `String`\
856
- * *(Optional)* The visualizer's type.
857
- *
858
- * [View Demo](https://surveyjs.io/dashboard/examples/how-to-plot-survey-data-in-custom-bar-chart/ (linkStyle))
859
- */
860
- export class VisualizerBase implements IDataInfo {
861
- question: Question;
862
- options: {
863
- [index: string]: any;
864
- };
865
- private _type?;
866
- private _showToolbar;
867
- private _footerVisualizer;
868
- private _dataProvider;
869
- labelTruncateLength: number;
870
- protected renderResult: HTMLElement;
871
- protected toolbarContainer: HTMLElement;
872
- protected headerContainer: HTMLElement;
873
- protected contentContainer: HTMLElement;
874
- protected footerContainer: HTMLElement;
875
- protected _supportSelection: boolean;
876
- static otherCommentCollapsed: boolean;
877
- /**
878
- * An event that is raised after the visualizer's content is rendered.
879
- *
880
- * Parameters:
881
- *
882
- * - `sender`: `VisualizerBase`\
883
- * A `VisualizerBase` instance that raised the event.
884
- *
885
- * - `options.htmlElement`: `HTMLElement`\
886
- * A page element with the visualizer's content.
887
- * @see render
888
- * @see refresh
889
- **/
890
- onAfterRender: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
891
- protected afterRender(contentContainer: HTMLElement): void;
892
- /**
893
- * An event that is raised after a new locale is set.
894
- *
895
- * Parameters:
896
- *
897
- * - `sender`: `VisualizerBase`\
898
- * A `VisualizerBase` instance that raised the event.
899
- *
900
- * - `options.locale`: `String`\
901
- * The indentifier of a new locale (for example, "en").
902
- * @see locale
903
- */
904
- onLocaleChanged: Event<(sender: VisualizerBase, options: {
905
- locale: string;
906
- }) => any, VisualizerBase, any>;
907
- protected toolbarItemCreators: {
908
- [name: string]: (toolbar?: HTMLDivElement) => HTMLElement;
909
- };
910
- constructor(question: Question, data: Array<{
911
- [index: string]: any;
912
- }>, options?: {
913
- [index: string]: any;
914
- }, _type?: string);
915
- protected get questionOptions(): any;
916
- protected onDataChanged(): void;
917
- /**
918
- * Returns the identifier of a visualized question.
919
- */
920
- get name(): string | Array<string>;
921
- /**
922
- * Indicates whether the visualizer displays a header. This property is `true` when a visualized question has a correct answer.
923
- * @see hasFooter
924
- */
925
- get hasHeader(): boolean;
926
- /**
927
- * Indicates whether the visualizer displays a footer. This property is `true` when a visualized question has a comment.
928
- * @see hasHeader
929
- */
930
- get hasFooter(): boolean;
931
- protected createVisualizer<T = VisualizerBase>(question: Question): T;
932
- /**
933
- * Allows you to access the footer visualizer. Returns `undefined` if the footer is absent.
934
- * @see hasFooter
935
- */
936
- get footerVisualizer(): VisualizerBase;
937
- /**
938
- * Indicates whether users can select series points to cross-filter charts. To allow or disallow selection, set the `allowSelection` property of the `options` object in the constructor.
939
- */
940
- get supportSelection(): boolean;
941
- getSeriesValues(): Array<string>;
942
- getSeriesLabels(): Array<string>;
943
- getValues(): Array<any>;
944
- getLabels(): Array<string>;
945
- /**
946
- * Registers a function used to create a toolbar item for this visualizer.
947
- * @param name A custom name for the toolbar item.
948
- * @param creator A function that accepts the toolbar and should return an `HTMLElement` with the toolbar item.
949
- */
950
- registerToolbarItem(name: string, creator: (toolbar?: HTMLDivElement) => HTMLElement): void;
951
- /**
952
- * Returns the visualizer's type.
953
- */
954
- get type(): string;
955
- /**
956
- * Returns an array of survey results used to calculate values for visualization. If a user applies a filter, the array is also filtered.
957
- *
958
- * To get an array of calculated and visualized values, call the [`getData()`](https://surveyjs.io/dashboard/documentation/api-reference/visualizerbase#getData) method.
959
- */
960
- protected get data(): {
961
- [index: string]: any;
962
- }[];
963
- protected get dataProvider(): DataProvider;
964
- /**
965
- * Updates visualized data.
966
- * @param data A data array with survey results to be visualized.
967
- */
968
- updateData(data: Array<{
969
- [index: string]: any;
970
- }>): void;
971
- onUpdate: () => void;
972
- invokeOnUpdate(): void;
973
- /**
974
- * Deletes the visualizer and all its elements from the DOM.
975
- * @see clear
976
- */
977
- destroy(): void;
978
- /**
979
- * Empties the toolbar, header, footer, and content containers.
980
- *
981
- * If you want to empty and delete the visualizer and all its elements from the DOM, call the [`destroy()`](https://surveyjs.io/dashboard/documentation/api-reference/visualizerbase#destroy) method instead.
982
- */
983
- clear(): void;
984
- protected createToolbarItems(toolbar: HTMLDivElement): void;
985
- protected getCorrectAnswerText(): string;
986
- protected destroyToolbar(container: HTMLElement): void;
987
- protected renderToolbar(container: HTMLElement): void;
988
- protected destroyHeader(container: HTMLElement): void;
989
- protected destroyContent(container: HTMLElement): void;
990
- protected renderHeader(container: HTMLElement): void;
991
- protected renderContent(container: HTMLElement): void;
992
- protected destroyFooter(container: HTMLElement): void;
993
- protected renderFooter(container: HTMLElement): void;
994
- /**
995
- * Renders the visualizer in a specified container.
996
- * @param targetElement An `HTMLElement` or an `id` of a page element in which you want to render the visualizer.
997
- */
998
- render(targetElement: HTMLElement | string): void;
999
- /**
1000
- * Re-renders the visualizer and its content.
1001
- */
1002
- refresh(): void;
1003
- protected processText(text: string): string;
1004
- getRandomColor(): any;
1005
- private _backgroundColor;
1006
- get backgroundColor(): string;
1007
- set backgroundColor(value: string);
1008
- protected getBackgroundColorCore(): string;
1009
- protected setBackgroundColorCore(color: string): void;
1010
- static customColors: string[];
1011
- private static colors;
1012
- getColors(count?: number): any;
1013
- /**
1014
- * Gets or sets the visibility of the visualizer's toolbar.
1015
- *
1016
- * Default value: `true`
1017
- */
1018
- get showToolbar(): boolean;
1019
- set showToolbar(newValue: boolean);
1020
- /**
1021
- * Returns an array of calculated and visualized values. If a user applies a filter, the array is also filtered.
1022
- *
1023
- * To get an array of source survey results, use the [`data`](https://surveyjs.io/dashboard/documentation/api-reference/visualizerbase#data) property.
1024
- */
1025
- getData(): any;
1026
- /**
1027
- * Returns an object with properties that describe a current visualizer state. The properties are different for each individual visualizer.
1028
- *
1029
- * > This method is overriden in descendant classes.
1030
- * @see setState
1031
- */
1032
- getState(): any;
1033
- /**
1034
- * Sets the visualizer's state.
1035
- *
1036
- * > This method is overriden in descendant classes.
1037
- * @see getState
1038
- */
1039
- setState(state: any): void;
1040
- /**
1041
- * Gets or sets the current locale.
1042
- *
1043
- * If you want to inherit the locale from a visualized survey, assign a `SurveyModel` instance to the `survey` property of the `options` object in the constructor.
1044
- *
1045
- * If the survey is [translated into more than one language](https://surveyjs.io/form-library/examples/survey-localization/), the toolbar displays a language selection drop-down menu.
1046
- * @see onLocaleChanged
1047
- */
1048
- get locale(): string;
1049
- set locale(newLocale: string);
1050
- protected setLocale(newLocale: string): void;
1051
- }
1052
- }
1053
- declare module "number" {
1054
- import { Question } from "survey-core";
1055
- import { VisualizerBase } from "visualizerBase";
1056
- export class NumberModel extends VisualizerBase {
1057
- private _resultAverage;
1058
- private _resultMin;
1059
- private _resultMax;
1060
- static stepsCount: number;
1061
- static generateTextsCallback: (question: Question, maxValue: number, minValue: number, stepsCount: number, texts: string[]) => string[];
1062
- protected chartTypes: Array<string>;
1063
- chartType: String;
1064
- static showAsPercentage: boolean;
1065
- constructor(question: Question, data: Array<{
1066
- [index: string]: any;
1067
- }>, options?: {
1068
- [index: string]: any;
1069
- }, name?: string);
1070
- protected onDataChanged(): void;
1071
- protected onChartTypeChanged(): void;
1072
- protected setChartType(chartType: string): void;
1073
- destroy(): void;
1074
- generateText(maxValue: number, minValue: number, stepsCount: number): any;
1075
- generateValues(maxValue: number, stepsCount: number): any[];
1076
- generateColors(maxValue: number, minValue: number, stepsCount: number): any[];
1077
- getData(): number[];
1078
- }
1079
- }
1080
- declare module "selectBase" {
1081
- import { Question, ItemValue, Event } from "survey-core";
1082
- import { VisualizerBase } from "visualizerBase";
1083
- export interface IVisualizerWithSelection {
1084
- selection: ItemValue;
1085
- onDataItemSelected: (selectedValue: any, selectedText: string) => void;
1086
- setSelection(item: ItemValue): void;
1087
- }
1088
- export interface IAnswersData {
1089
- datasets: Array<Array<any>>;
1090
- labels: Array<string>;
1091
- colors: Array<string>;
1092
- texts: Array<Array<any>>;
1093
- seriesLabels: Array<string>;
1094
- }
1095
- export class SelectBase extends VisualizerBase implements IVisualizerWithSelection {
1096
- protected selectedItem: ItemValue;
1097
- private choicesOrderSelector;
1098
- private showPercentageBtn;
1099
- private emptyAnswersBtn;
1100
- private transposeDataBtn;
1101
- private topNSelector;
1102
- private _showPercentages;
1103
- private _showOnlyPercentages;
1104
- private _percentagePrecision;
1105
- protected _answersOrder: string;
1106
- protected _supportSelection: boolean;
1107
- private _hideEmptyAnswers;
1108
- private _topN;
1109
- static topNValuesDefaults: number[];
1110
- topNValues: any[];
1111
- private _transposeData;
1112
- private _showMissingAnswers;
1113
- private missingAnswersBtn;
1114
- constructor(question: Question, data: Array<{
1115
- [index: string]: any;
1116
- }>, options?: any, name?: string);
1117
- protected chartTypes: string[];
1118
- protected _chartType: string;
1119
- /**
1120
- * Chart type - current chart type.
1121
- */
1122
- get chartType(): string;
1123
- set chartType(newChartType: string);
1124
- private updateEmptyAnswersBtn;
1125
- private updateTransposeDataBtn;
1126
- private updateOrderSelector;
1127
- private updateShowPercentageBtn;
1128
- private updateTopNSelector;
1129
- private updateMissingAnswersBtn;
1130
- protected onChartTypeChanged(): void;
1131
- protected setChartType(chartType: string): void;
1132
- protected getCorrectAnswerText(): string;
1133
- getSelectedItemByText(itemText: string): any;
1134
- setSelection(item: ItemValue): void;
1135
- get selection(): ItemValue;
1136
- /**
1137
- * Gets and sets whether chart should show percentages only.
1138
- */
1139
- get showOnlyPercentages(): boolean;
1140
- set showOnlyPercentages(val: boolean);
1141
- /**
1142
- * Gets and sets whether chart should show values and percentages.
1143
- */
1144
- get showPercentages(): boolean;
1145
- set showPercentages(val: boolean);
1146
- /**
1147
- * Gets and sets chart elements order.
1148
- */
1149
- get answersOrder(): string;
1150
- set answersOrder(value: string);
1151
- /**
1152
- * Set to true if need to hide empty chart elements (e.g. bars vith zero value).
1153
- */
1154
- get hideEmptyAnswers(): boolean;
1155
- set hideEmptyAnswers(value: boolean);
1156
- get transposeData(): boolean;
1157
- set transposeData(value: boolean);
1158
- /**
1159
- * Set to some value if need to show top N chart elements.
1160
- */
1161
- get topN(): number;
1162
- set topN(value: number);
1163
- protected isSupportMissingAnswers(): boolean;
1164
- /**
1165
- * Set to true if you want to see chart elements for missing answers (e.g. radiogroup items never been selected by surveyee).
1166
- */
1167
- get showMissingAnswers(): boolean;
1168
- set showMissingAnswers(value: boolean);
1169
- refreshContent(): void;
1170
- onDataItemSelected: (selectedValue: any, selectedText: string) => void;
1171
- get showValuesInOriginalOrder(): boolean;
1172
- valuesSource(): Array<ItemValue>;
1173
- getValues(): Array<any>;
1174
- getLabels(): Array<string>;
1175
- getPercentages(): Array<Array<number>>;
1176
- protected hideEmptyAnswersInData(answersData: IAnswersData): IAnswersData;
1177
- protected answersDataReady(answersData: IAnswersData): any;
1178
- /**
1179
- * Fires when answer data has been combined before they passed to draw graph.
1180
- * options - the answers data object containing: datasets, labels, colors, additional texts (percentage).
1181
- * options fields can be modified
1182
- */
1183
- onAnswersDataReady: Event<(sender: SelectBase, options: any) => any, SelectBase, any>;
1184
- /**
1185
- * Returns object with all infotmation for data visualization: datasets, labels, colors, additional texts (percentage).
1186
- */
1187
- getAnswersData(): IAnswersData;
1188
- protected transpose(data: Array<Array<number>>): Array<Array<number>>;
1189
- private static _stateProperties;
1190
- getState(): any;
1191
- setState(state: any): void;
1192
- }
1193
- }
1194
- declare module "matrix" {
1195
- import { ItemValue, QuestionMatrixModel, Question } from "survey-core";
1196
- import { IAnswersData, SelectBase } from "selectBase";
1197
- export class Matrix extends SelectBase {
1198
- constructor(question: Question, data: Array<{
1199
- [index: string]: any;
1200
- }>, options?: Object, name?: string);
1201
- protected get matrixQuestion(): QuestionMatrixModel;
1202
- protected isSupportMissingAnswers(): boolean;
1203
- getSeriesValues(): Array<string>;
1204
- getSeriesLabels(): Array<string>;
1205
- getSelectedItemByText(itemText: string): any;
1206
- valuesSource(): Array<ItemValue>;
1207
- private getHasAnswersInAllSeriesArray;
1208
- private getHasAnswersInSeries;
1209
- protected hideEmptyAnswersInData(answersData: IAnswersData): IAnswersData;
1210
- getData(): any[];
1211
- }
1212
- }
1213
- declare module "boolean" {
1214
- import { Question, QuestionBooleanModel } from "survey-core";
1215
- import { ItemValue } from "survey-core";
1216
- import { SelectBase } from "selectBase";
1217
- export class BooleanModel extends SelectBase {
1218
- protected chartTypes: string[];
1219
- constructor(question: Question, data: Array<{
1220
- [index: string]: any;
1221
- }>, options?: Object, name?: string);
1222
- protected getCorrectAnswerText(): string;
1223
- get booleanQuestion(): QuestionBooleanModel;
1224
- static trueColor: string;
1225
- static falseColor: string;
1226
- getSelectedItemByText(itemText: string): ItemValue;
1227
- getValues(): Array<any>;
1228
- getLabels(): Array<string>;
1229
- }
1230
- }
1231
- declare module "histogram" {
1232
- import { ItemValue, Question } from "survey-core";
1233
- import { SelectBase } from "selectBase";
1234
- export class HistogramModel extends SelectBase {
1235
- protected valueType: "date" | "number";
1236
- private _cachedValues;
1237
- private _continiousData;
1238
- private _cachedIntervals;
1239
- private _intervalPrecision;
1240
- protected chartTypes: string[];
1241
- static IntervalsCount: number;
1242
- static UseIntervalsFrom: number;
1243
- constructor(question: Question, data: Array<{
1244
- [index: string]: any;
1245
- }>, options?: Object, name?: string);
1246
- private reset;
1247
- getContiniousValue(value: any): number;
1248
- getString(value: number): string;
1249
- private toPrecision;
1250
- getSelectedItemByText(itemText: string): ItemValue;
1251
- /**
1252
- * Updates visualizer data.
1253
- */
1254
- updateData(data: Array<{
1255
- [index: string]: any;
1256
- }>): void;
1257
- protected onDataChanged(): void;
1258
- protected getContiniousValues(): {
1259
- original: any;
1260
- continious: number;
1261
- }[];
1262
- protected isSupportMissingAnswers(): boolean;
1263
- protected get needUseRateValues(): boolean;
1264
- getValues(): Array<any>;
1265
- getLabels(): Array<string>;
1266
- get hasCustomIntervals(): boolean;
1267
- get intervals(): any;
1268
- getData(): any;
1269
- }
1270
- }
1271
- declare module "alternativeVizualizersWrapper" {
1272
- import { Question, ItemValue } from "survey-core";
1273
- import { VisualizerBase } from "visualizerBase";
1274
- import { IVisualizerWithSelection } from "selectBase";
1275
- import { Event } from "survey-core";
1276
- export class AlternativeVisualizersWrapper extends VisualizerBase implements IVisualizerWithSelection {
1277
- private visualizers;
1278
- private visualizerSelector;
1279
- private updateVisualizerSelector;
1280
- constructor(visualizers: Array<VisualizerBase>, question: Question, data: Array<{
1281
- [index: string]: any;
1282
- }>, options?: Object);
1283
- protected visualizerContainer: HTMLElement;
1284
- get hasFooter(): boolean;
1285
- getVisualizers(): VisualizerBase[];
1286
- private visualizersWithSelection;
1287
- private selectedItem;
1288
- private visualizer;
1289
- private onAfterVisualizerRenderCallback;
1290
- /**
1291
- * The event is fired right after AlternativeVisualizersWrapper content type has been changed.
1292
- **/
1293
- onVisualizerChanged: Event<(sender: AlternativeVisualizersWrapper, options: any) => any, AlternativeVisualizersWrapper, any>;
1294
- /**
1295
- * This method selects visualizer to show by it name.
1296
- *
1297
- * parameters:
1298
- * name - the name of visualizer to show,
1299
- * quiet - set it to true if you don't want to rise a notification event
1300
- *
1301
- **/
1302
- setVisualizer(type: string, quiet?: boolean): void;
1303
- updateData(data: Array<{
1304
- [index: string]: any;
1305
- }>): void;
1306
- set onDataItemSelected(val: (selectedValue: any, selectedText: string) => void);
1307
- setSelection(item: ItemValue): void;
1308
- get selection(): any;
1309
- protected renderContent(container: HTMLElement): void;
1310
- protected setBackgroundColorCore(color: string): void;
1311
- destroy(): void;
1312
- }
1313
- }
1314
- declare module "config" {
1315
- /**
1316
- * An interface that describes a visualization item (chart, gauge, etc.).
1317
- *
1318
- * To access `IVisualizerPanelElement` objects, you can use the following properties and methods of `VisualizationPanel`:
1319
- *
1320
- * - [`getElements()`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel#getElements)
1321
- * - [`visibleElements`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel#visibleElements)
1322
- * - [`hiddenElements`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel#hiddenElements)
1323
- */
1324
- export interface IVisualizerPanelElement {
1325
- /**
1326
- * The name of a survey question visualized by this item.
1327
- */
1328
- name: string;
1329
- /**
1330
- * The title of a survey question visualized by this item. The visualization item displays the same title.
1331
- */
1332
- displayName: string;
1333
- /**
1334
- * Indicates whether the visualization item is currently visible.
1335
- *
1336
- * If you want to disallow users to hide visualization items, set the [`allowHideQuestions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#allowHideQuestions) property to `false`.
1337
- */
1338
- isVisible: boolean;
1339
- isPublic: boolean;
1340
- chartType?: string;
1341
- answersOrder?: string;
1342
- hideEmptyAnswers?: boolean;
1343
- topN?: number;
1344
- }
1345
- export interface IState {
1346
- locale?: string;
1347
- elements?: IVisualizerPanelElement[];
1348
- }
1349
- export interface IPermission {
1350
- name: string;
1351
- isPublic: boolean;
1352
- }
1353
- }
1354
- declare module "filterInfo" {
1355
- import { IVisualizerWithSelection } from "selectBase";
1356
- export class FilterInfo {
1357
- private _htmlElement;
1358
- private text;
1359
- constructor(visualizer: IVisualizerWithSelection);
1360
- get htmlElement(): HTMLDivElement;
1361
- update(selection: {
1362
- value: any;
1363
- text: string;
1364
- }): void;
1365
- }
1366
- }
1367
- declare module "layoutEngine" {
1368
- /**
1369
- * A base class used to implement custom layout engines or integrate third-party layout engines with SurveyJS Dashboard.
1370
- */
1371
- export class LayoutEngine {
1372
- protected _allowed: boolean;
1373
- constructor(_allowed: boolean);
1374
- protected startCore(container: HTMLElement): void;
1375
- protected stopCore(): void;
1376
- protected updateCore(): void;
1377
- get allowed(): boolean;
1378
- /**
1379
- * Enables the dynamic layout in a given HTML element.
1380
- *
1381
- * This method should arrange visualization items based on the available screen space and allow users to reorder them via drag and drop.
1382
- */
1383
- start(container: HTMLElement): void;
1384
- /**
1385
- * Disables the dynamic layout.
1386
- */
1387
- stop(): void;
1388
- /**
1389
- * Updates the dynamic layout.
1390
- */
1391
- update(): void;
1392
- add(elements: Array<HTMLElement>, options?: any): void;
1393
- remove(elements: Array<HTMLElement>, options?: any): void;
1394
- onMoveCallback: (fromIndex: number, toIndex: number) => void;
1395
- destroy(): void;
1396
- }
1397
- export class MuuriLayoutEngine extends LayoutEngine {
1398
- private _selector;
1399
- private _muuri;
1400
- private _layoutingTimer;
1401
- constructor(allowed: boolean, _selector: string);
1402
- protected startCore(container: HTMLElement): void;
1403
- protected stopCore(): void;
1404
- protected updateCore(): void;
1405
- add(elements: Array<HTMLElement>, options?: any): void;
1406
- remove(elements: Array<HTMLElement>, options?: any): void;
1407
- }
1408
- }
1409
- declare module "visualizationPanel" {
1410
- import { Event, SurveyModel } from "survey-core";
1411
- import { VisualizerBase } from "visualizerBase";
1412
- import { AlternativeVisualizersWrapper } from "alternativeVizualizersWrapper";
1413
- import { IVisualizerPanelElement, IState, IPermission } from "config";
1414
- import { LayoutEngine } from "layoutEngine";
1415
- import { DataProvider } from "dataProvider";
1416
- export interface IVisualizerPanelRenderedElement extends IVisualizerPanelElement {
1417
- renderedElement?: HTMLElement;
1418
- }
1419
- /**
1420
- * Visualization Panel configuration. Pass it as the third argument to the [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel) constructor:
1421
- *
1422
- * ```js
1423
- * import { VisualizationPanel } from "survey-analytics";
1424
- *
1425
- * const vizPanel = new VisualizationPanel(
1426
- * surveyQuestions,
1427
- * surveyResults,
1428
- * vizPanelOptions
1429
- * );
1430
- * ```
1431
- */
1432
- export interface IVisualizationPanelOptions {
1433
- /**
1434
- * The number of label characters after which truncation starts.
1435
- *
1436
- * Set this property to -1 to disable truncation.
1437
- *
1438
- * Default value: 27
1439
- */
1440
- labelTruncateLength?: number;
1441
- allowMakeQuestionsPrivate?: boolean;
1442
- seriesValues?: string[];
1443
- seriesLabels?: string[];
1444
- useValuesAsLabels?: boolean;
1445
- /**
1446
- * Pass a survey instance to use survey locales in the Visualization Panel.
1447
- */
1448
- survey?: SurveyModel;
1449
- /**
1450
- * A common data provider for all visualizers.
1451
- */
1452
- dataProvider?: DataProvider;
1453
- /**
1454
- * Allows users to change the visibility of individual charts.
1455
- *
1456
- * This property adds a Hide button to each chart.
1457
- *
1458
- * Default value: `true`
1459
- */
1460
- allowHideQuestions?: boolean;
1461
- /**
1462
- * Specifies whether to arrange charts based on the available screen space and allow users to reorder them via drag and drop.
1463
- *
1464
- * If this property is disabled, charts are displayed one under the other and users cannot reorder them.
1465
- *
1466
- * Default value: `true`
1467
- *
1468
- * [View Demo](https://surveyjs.io/Examples/Analytics?id=custom-layout (linkStyle))
1469
- *
1470
- * @see layoutEngine
1471
- */
1472
- allowDynamicLayout?: boolean;
1473
- /**
1474
- * A layout engine used to arrange charts on the Visualization Panel.
1475
- *
1476
- * You can use this property to integrate a third-party layout engine with SurveyJS Dashboard.
1477
- *
1478
- * @see allowDynamicLayout
1479
- */
1480
- layoutEngine?: LayoutEngine;
1481
- /**
1482
- * Allows users to switch between absolute and percentage values in bar charts.
1483
- *
1484
- * This property adds a Show Percentages button to each bar chart.
1485
- *
1486
- * Default value: `false`
1487
- *
1488
- * @see showPercentages
1489
- * @see showOnlyPercentages
1490
- * @see percentagePrecision
1491
- */
1492
- allowShowPercentages?: boolean;
1493
- /**
1494
- * Specifies whether bar charts display percentages in addition to absolute values.
1495
- *
1496
- * Users can change this property value if you enable the `allowShowPercentages` property.
1497
- *
1498
- * Default value: `false`
1499
- *
1500
- * @see allowShowPercentages
1501
- * @see showOnlyPercentages
1502
- * @see percentagePrecision
1503
- */
1504
- showPercentages?: boolean;
1505
- /**
1506
- * Specifies whether bar charts display only percentages, without absolute values.
1507
- *
1508
- * Applies only if the `allowShowPercentages` or `showPercentages` property is enabled.
1509
- *
1510
- * Default value: `false`
1511
- *
1512
- * @see allowShowPercentages
1513
- * @see showPercentages
1514
- * @see percentagePrecision
1515
- */
1516
- showOnlyPercentages?: boolean;
1517
- /**
1518
- * Specifies percentage precision.
1519
- *
1520
- * Default value: 0
1521
- *
1522
- * @see allowShowPercentages
1523
- * @see showPercentages
1524
- * @see showOnlyPercentages
1525
- */
1526
- percentagePrecision?: number;
1527
- /**
1528
- * Removes the Free Trial bar.
1529
- *
1530
- * Default value: `false`
1531
- *
1532
- * > You can enable this property only if you have a SurveyJS Dashboard commercial license. It is illegal to enable this property without a license.
1533
- */
1534
- haveCommercialLicense?: boolean;
1535
- /**
1536
- * Allows users to sort answers by answer count. Applies only to bar and scatter charts.
1537
- *
1538
- * This property adds a Sorting dropdown to each bar and scatter chart.
1539
- *
1540
- * Default value: `true`
1541
- *
1542
- * @see answersOrder
1543
- */
1544
- allowChangeAnswersOrder?: boolean;
1545
- /**
1546
- * Specifies how to sort answers in bar and scatter charts.
1547
- * Accepted values:
1548
- *
1549
- * - `"default"` (default) - Do not sort answers.
1550
- * - `"asc"` - Sort answers by ascending answer count.
1551
- * - `"desc"` - Sort answers by descending answer count.
1552
- *
1553
- * Users can change this property value if you enable the `allowChangeAnswersOrder` property.
1554
- *
1555
- * @see allowChangeAnswersOrder
1556
- */
1557
- answersOrder?: "default" | "asc" | "desc";
1558
- /**
1559
- * Allows users to hide answers with zero count in bar and scatter charts.
1560
- *
1561
- * This property adds a Hide Empty Answers button to each bar and scatter chart.
1562
- *
1563
- * Default value: `false`
1564
- */
1565
- allowHideEmptyAnswers?: boolean;
1566
- /**
1567
- * Hides answers with zero count in bar and scatter charts.
1568
- *
1569
- * Users can change this property value if you enable the `allowHideEmptyAnswers` property.
1570
- *
1571
- * Default value: `false`
1572
- *
1573
- * @see allowHideEmptyAnswers
1574
- */
1575
- hideEmptyAnswers?: boolean;
1576
- /**
1577
- * Allows users to select whether to show top 5, 10, or 20 answers by answer count.
1578
- *
1579
- * This property adds a Top N Answers dropdown to each chart.
1580
- *
1581
- * Default value: `false`
1582
- */
1583
- allowTopNAnswers?: boolean;
1584
- /**
1585
- * Allows users to show the number of respondents who did not answer a particular question.
1586
- *
1587
- * This property adds a Show Missing Answers button to each chart.
1588
- *
1589
- * Default value: `false`
1590
- */
1591
- allowShowMissingAnswers?: boolean;
1592
- allowExperimentalFeatures?: boolean;
1593
- /**
1594
- * Default chart type.
1595
- *
1596
- * Accepted values depend on the question type as follows:
1597
- *
1598
- * - Boolean: `"bar"` | `"pie"` | `"doughnut"`
1599
- * - Date, Number: `"bar"` | `"scatter"`
1600
- * - Matrix: `"bar"` | `"pie"` | `"doughnut"` | `"stackedbar"`
1601
- * - Rating: `"bar"` | `"scatter"` | `"gauge"` | `"bullet"`
1602
- * - Radiogroup, Checkbox, Dropdown, Image Picker: `"bar"` | `"pie"` | `"doughnut"` | `"scatter"`
1603
- *
1604
- * To set a type for an individual chart, access this chart in the `visualizers` array and set its `chartType` property to one of the values described above:
1605
- *
1606
- * ```js
1607
- * const vizPanel = new SurveyAnalytics.VisualizationPanel( ... );
1608
- * vizPanel.visualizers[0].chartType = "stackedbar";
1609
- * ```
1610
- *
1611
- */
1612
- defaultChartType?: string;
1613
- /**
1614
- * Allows users to transpose a visualized matrix question.
1615
- *
1616
- * This property adds a Transpose button to charts that visualize matrixes. When users select Per Values, matrix rows go to chart arguments and matrix columns form chart series. When users select Per Columns, matrix rows form chart series and matrix columns go to chart arguments.
1617
- *
1618
- * Default value: `false`
1619
- */
1620
- allowTransposeData?: boolean;
1621
- /**
1622
- * Allows users to cross-filter charts. The filter applies when users select a series point.
1623
- *
1624
- * Default value: `true`
1625
- */
1626
- allowSelection?: boolean;
1627
- renderContent?: Function;
1628
- destroyContent?: Function;
1629
- /**
1630
- * Removes HTML tags from survey element titles.
1631
- *
1632
- * Survey element titles can contain HTML markup and are specified by users. An attacker can inject malicious code into the titles. To guard against it, keep this property set to `true`.
1633
- *
1634
- * Default value: `true`
1635
- */
1636
- stripHtmlFromTitles?: boolean;
1637
- }
1638
- /**
1639
- * An object that visualizes survey results and allows users to analyze them.
1640
- *
1641
- * Constructor parameters:
1642
- *
1643
- * - `questions`: Array\<[`Question`](https://surveyjs.io/form-library/documentation/api-reference/question)\>\
1644
- * Survey questions to visualize. Call `SurveyModel`'s [`getAllQuestions()`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#getQuestionByName) method to access all survey questions and pass its result as the `questions` parameter.
1645
- * - `data`: `Array<any>`\
1646
- * Survey results.
1647
- * - `options`: [`IVisualizationPanelOptions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions)\
1648
- * Visualization Panel configuration.
1649
- *
1650
- * [View Demo](https://surveyjs.io/dashboard/examples/interactive-survey-data-dashboard/ (linkStyle))
1651
- */
1652
- export class VisualizationPanel extends VisualizerBase {
1653
- protected questions: Array<any>;
1654
- private _elements;
1655
- static haveCommercialLicense: boolean;
1656
- visualizers: Array<VisualizerBase>;
1657
- private haveCommercialLicense;
1658
- private renderedQuestionsCount;
1659
- constructor(questions: Array<any>, data: Array<{
1660
- [index: string]: any;
1661
- }>, options?: IVisualizationPanelOptions, _elements?: Array<IVisualizerPanelRenderedElement>);
1662
- private onAfterRenderQuestionCallback;
1663
- /**
1664
- * An event that is raised when a user selects a different visualizer type from the Type drop-down menu.
1665
- *
1666
- * Parameters:
1667
- *
1668
- * - `sender`: `AlternativeVisualizersWrapper`\
1669
- * An object that controls altenative visualizers.
1670
- *
1671
- * - `options.visualizer`: `VisualizerBase`\
1672
- * An applied visualizer.
1673
- **/
1674
- onAlternativeVisualizerChanged: Event<(sender: AlternativeVisualizersWrapper, options: any) => any, AlternativeVisualizersWrapper, any>;
1675
- private onAlternativeVisualizerChangedCallback;
1676
- protected showElement(elementName: string): void;
1677
- protected hideElement(elementName: string): void;
1678
- protected makeElementPrivate(element: IVisualizerPanelElement): void;
1679
- protected makeElementPublic(element: IVisualizerPanelElement): void;
1680
- protected moveVisibleElement(fromVisibleIndex: number, toVisibleIndex: number): void;
1681
- protected moveElement(fromIndex: number, toIndex: number): void;
1682
- protected setBackgroundColorCore(color: string): void;
1683
- private buildVisualizers;
1684
- private destroyVisualizers;
1685
- protected setLocale(newLocale: string): void;
1686
- /**
1687
- * Returns the [`allowDynamicLayout`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#allowDynamicLayout) property value of the [`IVisualizationPanelOptions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions) object.
1688
- */
1689
- get allowDynamicLayout(): boolean;
1690
- /**
1691
- * Returns the [`allowHideQuestions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#allowHideQuestions) property value of the [`IVisualizationPanelOptions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions) object.
1692
- */
1693
- get allowHideQuestions(): boolean;
1694
- get allowMakeQuestionsPrivate(): boolean;
1695
- private _layoutEngine;
1696
- /**
1697
- * Returns a [`LayoutEngine`](https://surveyjs.io/dashboard/documentation/api-reference/layoutengine) instance used to arrange visualization items on `VisualizationPanel`.
1698
- */
1699
- get layoutEngine(): LayoutEngine;
1700
- protected buildElements(questions: any[]): IVisualizerPanelElement[];
1701
- /**
1702
- * Returns an array of [`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement) objects with information about visualization items.
1703
- * @see visibleElements
1704
- * @see hiddenElements
1705
- */
1706
- getElements(): IVisualizerPanelElement[];
1707
- /**
1708
- * Returns an array of [`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement) objects with information about currently visible visualization items.
1709
- *
1710
- * If you want to disallow users to hide visualization items, set the [`allowHideQuestions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#allowHideQuestions) property to `false`.
1711
- * @see hiddenElements
1712
- * @see getElements
1713
- */
1714
- get visibleElements(): IVisualizerPanelRenderedElement[];
1715
- /**
1716
- * Returns an array of [`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement) objects with information about currently hidden visualization items.
1717
- *
1718
- * If you want to disallow users to hide visualization items, set the [`allowHideQuestions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#allowHideQuestions) property to `false`.
1719
- * @see visibleElements
1720
- * @see getElements
1721
- */
1722
- get hiddenElements(): IVisualizerPanelRenderedElement[];
1723
- get publicElements(): IVisualizerPanelRenderedElement[];
1724
- get privateElements(): IVisualizerPanelRenderedElement[];
1725
- protected get locales(): any;
1726
- /**
1727
- * Returns panel element description by the question name.
1728
- */
1729
- getElement(name: string): IVisualizerPanelRenderedElement;
1730
- /**
1731
- * Returns a [visualizer](https://surveyjs.io/dashboard/documentation/api-reference/visualizerbase) that visualizes a specified survey question.
1732
- * @param questionName A question [name](https://surveyjs.io/form-library/documentation/api-reference/question#name).
1733
- */
1734
- getVisualizer(questionName: string): VisualizerBase;
1735
- /**
1736
- * An event that is raised when users [move a visualization item](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#allowDynamicLayout) or [toggle its visibility](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions#allowHideQuestions).
1737
- *
1738
- * Parameters:
1739
- *
1740
- * - `sender`: [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel)\
1741
- * A `VisualizationPanel` that raised the event.
1742
- *
1743
- * - `options.elements`: Array\<[`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement)\>\
1744
- * Information about visualization items rendered by this `VisualizationPanel`.
1745
- *
1746
- * - `options.changed`: [`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement)\
1747
- * A visualization item that has been changed.
1748
- *
1749
- * - `options.reason`: `"ADDED"` | `"REMOVED"` | `"MOVED"`\
1750
- * Indicates the reason why the event has been raised.
1751
- */
1752
- onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, VisualizationPanel, any>;
1753
- protected visibleElementsChanged(element: IVisualizerPanelElement, reason: string): void;
1754
- onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, VisualizationPanel, any>;
1755
- onPermissionsChangedCallback: any;
1756
- protected renderPanelElement(element: IVisualizerPanelRenderedElement, container: HTMLElement): HTMLElement;
1757
- protected renderToolbar(container: HTMLElement): void;
1758
- renderContent(container: HTMLElement): void;
1759
- protected destroyContent(container: HTMLElement): void;
1760
- /**
1761
- * Redraws the `VisualizationPanel` and all its content.
1762
- */
1763
- refresh(): void;
1764
- layout(): void;
1765
- /**
1766
- * Filters visualized data based on a specified question name and value. This method is called when a user clicks a chart point.
1767
- * @param questionName A question [name](https://surveyjs.io/form-library/documentation/api-reference/question#name).
1768
- * @param selectedValue
1769
- * @see IVisualizationPanelOptions.allowSelection
1770
- */
1771
- setFilter(questionName: string, selectedValue: any): void;
1772
- get state(): IState;
1773
- /**
1774
- * Sets vizualization panel state.
1775
- */
1776
- set state(newState: IState);
1777
- get permissions(): IPermission[];
1778
- set permissions(permissions: IPermission[]);
1779
- destroy(): void;
1780
- }
1781
- }
1782
- declare module "visualizationPanelDynamic" {
1783
- import { VisualizerBase } from "visualizerBase";
1784
- import { VisualizationPanel } from "visualizationPanel";
1785
- import { Question, IQuestion } from "survey-core";
1786
- export class VisualizationPanelDynamic extends VisualizerBase {
1787
- protected _panelVisualizer: VisualizationPanel;
1788
- constructor(question: Question, data: Array<{
1789
- [index: string]: any;
1790
- }>, options?: {
1791
- [index: string]: any;
1792
- }, name?: string);
1793
- protected setLocale(newLocale: string): void;
1794
- private onAfterRenderPanelCallback;
1795
- get type(): string;
1796
- private updatePanelVisualizerData;
1797
- updateData(data: Array<{
1798
- [index: string]: any;
1799
- }>): void;
1800
- protected onDataChanged(): void;
1801
- getQuestions(): IQuestion[];
1802
- destroyContent(container: HTMLElement): void;
1803
- renderContent(container: HTMLElement): void;
1804
- destroy(): void;
1805
- }
1806
- }
1807
- declare module "visualizationMatrixDynamic" {
1808
- import { Question } from "survey-core";
1809
- import { VisualizationPanelDynamic } from "visualizationPanelDynamic";
1810
- export class VisualizationMatrixDynamic extends VisualizationPanelDynamic {
1811
- constructor(question: Question, data: Array<{
1812
- [index: string]: any;
1813
- }>, options?: Object);
1814
- get type(): string;
1815
- getQuestions(): Question[];
1816
- }
1817
- }
1818
- declare module "visualizationMatrixDropdown" {
1819
- import { QuestionMatrixDropdownModel } from "survey-core";
1820
- import { VisualizerBase } from "visualizerBase";
1821
- export class VisualizationMatrixDropdown extends VisualizerBase {
1822
- protected _matrixDropdownVisualizer: VisualizerBase;
1823
- private readonly _childOptions;
1824
- constructor(question: QuestionMatrixDropdownModel, data: Array<{
1825
- [index: string]: any;
1826
- }>, options?: {
1827
- [index: string]: any;
1828
- }, name?: string);
1829
- protected setLocale(newLocale: string): void;
1830
- get matrixDropdownVisualizer(): VisualizerBase;
1831
- private onPanelAfterRenderCallback;
1832
- private updateDropdownVisualizerData;
1833
- updateData(data: Array<{
1834
- [index: string]: any;
1835
- }>): void;
1836
- protected onDataChanged(): void;
1837
- getQuestions(): any[];
1838
- destroyContent(container: HTMLElement): void;
1839
- renderContent(container: HTMLElement): void;
1840
- destroy(): void;
1841
- }
1842
- }
1843
- declare module "plotly/setup" {
1844
- import { Event } from "survey-core";
1845
- import { SelectBase } from "selectBase";
1846
- import { VisualizerBase } from "visualizerBase";
1847
- export interface PlotlyOptions {
1848
- traces: Array<any>;
1849
- layout: any;
1850
- hasSeries: boolean;
1851
- }
1852
- export class PlotlySetup {
1853
- static imageExportFormat: string;
1854
- /**
1855
- * Fires when end user clicks on the 'save as image' button.
1856
- */
1857
- static onImageSaving: Event<(sender: SelectBase, options: any) => any, SelectBase, any>;
1858
- /**
1859
- * Fires before plot will be created. User can change traces, layout and config of the plot.
1860
- * Options is an object with the following fields: traces, layout and config of the plot.
1861
- */
1862
- static onPlotCreating: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
1863
- static setups: {
1864
- [type: string]: (model: SelectBase) => PlotlyOptions;
1865
- };
1866
- static setup(charType: string, model: SelectBase): PlotlyOptions;
1867
- static getTruncatedLabel: (label: string, labelTruncateLength: number) => string;
1868
- static setupPie(model: SelectBase): PlotlyOptions;
1869
- static setupBar(model: SelectBase): PlotlyOptions;
1870
- static setupVBar(model: SelectBase): PlotlyOptions;
1871
- static setupScatter(model: SelectBase): PlotlyOptions;
1872
- }
1873
- }
1874
- declare module "plotly/selectBase" {
1875
- import { Question } from "survey-core";
1876
- import { SelectBase } from "selectBase";
1877
- export class PlotlyChartAdapter {
1878
- protected model: SelectBase;
1879
- private _chart;
1880
- constructor(model: SelectBase);
1881
- protected patchConfigParameters(chartNode: object, traces: Array<object>, layout: object, config: object): void;
1882
- get chart(): Promise<Plotly.PlotlyHTMLElement>;
1883
- create(chartNode: HTMLElement): any;
1884
- destroy(node: HTMLElement): void;
1885
- }
1886
- export class SelectBasePlotly extends SelectBase {
1887
- private _chartAdapter;
1888
- static types: string[];
1889
- static displayModeBar: any;
1890
- constructor(question: Question, data: Array<{
1891
- [index: string]: any;
1892
- }>, options?: {
1893
- [index: string]: any;
1894
- }, name?: string);
1895
- protected destroyContent(container: HTMLElement): void;
1896
- protected renderContent(container: HTMLElement): void;
1897
- getData(): any[];
1898
- }
1899
- }
1900
- declare module "plotly/matrix" {
1901
- import { Question } from "survey-core";
1902
- import { Matrix } from "matrix";
1903
- export class MatrixPlotly extends Matrix {
1904
- private _chartAdapter;
1905
- static types: string[];
1906
- constructor(question: Question, data: Array<{
1907
- [index: string]: any;
1908
- }>, options?: Object, name?: string);
1909
- protected destroyContent(container: HTMLElement): void;
1910
- protected renderContent(container: HTMLElement): void;
1911
- }
1912
- }
1913
- declare module "plotly/boolean" {
1914
- import { Question } from "survey-core";
1915
- import { BooleanModel } from "boolean";
1916
- import { PlotlyChartAdapter } from "plotly/selectBase";
1917
- export class PlotlyBoolChartAdapter extends PlotlyChartAdapter {
1918
- constructor(model: BooleanPlotly);
1919
- protected patchConfigParameters(chartNode: object, traces: Array<object>, layout: object, config: object): void;
1920
- }
1921
- export class BooleanPlotly extends BooleanModel {
1922
- private _chartAdapter;
1923
- static types: string[];
1924
- constructor(question: Question, data: Array<{
1925
- [index: string]: any;
1926
- }>, options?: Object, name?: string);
1927
- protected destroyContent(container: HTMLElement): void;
1928
- protected renderContent(container: HTMLElement): void;
1929
- }
1930
- }
1931
- declare module "plotly/ranking" {
1932
- import { SelectBasePlotly } from "plotly/selectBase";
1933
- export class RankingPlotly extends SelectBasePlotly {
1934
- getQuestionResults(): any[];
1935
- getEmptyData(): any;
1936
- getData(): any[];
1937
- applyResultToPlotlyData(result: any[], plotlyData: any, choices: any): void;
1938
- }
1939
- }
1940
- declare module "matrixDropdownGrouped" {
1941
- import { ItemValue, QuestionMatrixDropdownModel, Question } from "survey-core";
1942
- import { SelectBase } from "selectBase";
1943
- export class MatrixDropdownGrouped extends SelectBase {
1944
- constructor(question: Question, data: Array<{
1945
- [index: string]: any;
1946
- }>, options?: Object, name?: string);
1947
- protected get matrixQuestion(): QuestionMatrixDropdownModel;
1948
- get name(): string | Array<string>;
1949
- getSeriesValues(): Array<string>;
1950
- getSeriesLabels(): Array<string>;
1951
- valuesSource(): Array<ItemValue>;
1952
- protected isSupportMissingAnswers(): boolean;
1953
- getData(): any[];
1954
- }
1955
- }
1956
- declare module "plotly/matrixdropdown-grouped" {
1957
- import { QuestionMatrixDropdownModel } from "survey-core";
1958
- import { MatrixDropdownGrouped } from "matrixDropdownGrouped";
1959
- export class MatrixDropdownGroupedPlotly extends MatrixDropdownGrouped {
1960
- private _chartAdapter;
1961
- static types: string[];
1962
- constructor(question: QuestionMatrixDropdownModel, data: Array<{
1963
- [index: string]: any;
1964
- }>, options?: Object, name?: string);
1965
- protected destroyContent(container: HTMLElement): void;
1966
- protected renderContent(container: HTMLElement): void;
1967
- }
1968
- }
1969
- declare module "plotly/histogram" {
1970
- import { Question } from "survey-core";
1971
- import { HistogramModel } from "histogram";
1972
- export class HistogramPlotly extends HistogramModel {
1973
- private _chartAdapter;
1974
- static types: string[];
1975
- constructor(question: Question, data: Array<{
1976
- [index: string]: any;
1977
- }>, options?: Object, name?: string);
1978
- protected destroyContent(container: HTMLElement): void;
1979
- protected renderContent(container: HTMLElement): void;
1980
- getData(): any[];
1981
- }
1982
- }
1983
- declare module "plotly/rating" {
1984
- import { Question } from "survey-core";
1985
- import { NumberModel } from "number";
1986
- export class PlotlyGaugeAdapter {
1987
- private model;
1988
- private _chart;
1989
- constructor(model: GaugePlotly);
1990
- get chart(): Promise<Plotly.PlotlyHTMLElement>;
1991
- create(chartNode: HTMLElement): any;
1992
- destroy(node: HTMLElement): void;
1993
- }
1994
- export class GaugePlotly extends NumberModel {
1995
- private _chartAdapter;
1996
- static displayModeBar: any;
1997
- static types: string[];
1998
- constructor(question: Question, data: Array<{
1999
- [index: string]: any;
2000
- }>, options?: Object, name?: string);
2001
- protected destroyContent(container: HTMLElement): void;
2002
- protected renderContent(container: HTMLElement): void;
2003
- }
2004
- }
2005
- declare module "plotly/index" {
2006
- export * from "plotly/setup";
2007
- export * from "plotly/selectBase";
2008
- export * from "plotly/matrix";
2009
- export * from "plotly/boolean";
2010
- export * from "plotly/ranking";
2011
- export * from "plotly/matrixdropdown-grouped";
2012
- export * from "plotly/histogram";
2013
- export * from "plotly/rating";
2014
- }
2015
- declare module "wordcloud/stopwords/english" {
2016
- export var stopWords: string[];
2017
- }
2018
- declare module "wordcloud/stopwords/norwegian" {
2019
- export var stopWords: string[];
2020
- }
2021
- declare module "wordcloud/stopwords/dutch" {
2022
- export var stopWords: string[];
2023
- }
2024
- declare module "wordcloud/stopwords/spanish" {
2025
- export var stopWords: string[];
2026
- }
2027
- declare module "wordcloud/stopwords/index" {
2028
- export var textHelper: {
2029
- getStopWords: (locale?: string) => string[];
2030
- };
2031
- }
2032
- declare module "wordcloud/wordcloud" {
2033
- import { Question, Event } from "survey-core";
2034
- import { VisualizerBase } from "visualizerBase";
2035
- export class WordCloudAdapter {
2036
- private model;
2037
- private _wordcloud;
2038
- static drawOutOfBound: boolean;
2039
- static shrinkToFit: boolean;
2040
- static abortThreshold: any;
2041
- static weightFactor: number;
2042
- static onWordcloudCreating: Event<(sender: WordCloud, options: any) => any, WordCloud, any>;
2043
- constructor(model: WordCloud);
2044
- get wordcloud(): any;
2045
- create(node: HTMLElement): any;
2046
- destroy(node: HTMLElement): void;
2047
- }
2048
- export class WordCloud extends VisualizerBase {
2049
- private _wordcloudAdapter;
2050
- constructor(question: Question, data: Array<{
2051
- [index: string]: any;
2052
- }>, options?: Object, name?: string);
2053
- getData(): (string | number)[][];
2054
- protected destroyContent(container: HTMLElement): void;
2055
- protected renderContent(container: HTMLElement): void;
2056
- destroy(): void;
2057
- }
2058
- }
2059
- declare module "text" {
2060
- import { Question } from "survey-core";
2061
- import { VisualizerBase } from "visualizerBase";
2062
- export class TextTableAdapter {
2063
- private model;
2064
- constructor(model: Text);
2065
- create(container: HTMLElement): void;
2066
- destroy(node: HTMLElement): void;
2067
- }
2068
- export class Text extends VisualizerBase {
2069
- private _textTableAdapter;
2070
- constructor(question: Question, data: Array<{
2071
- [index: string]: any;
2072
- }>, options?: Object, name?: string);
2073
- getData(): {
2074
- columnsCount: number;
2075
- data: string[][];
2076
- };
2077
- protected destroyContent(container: HTMLElement): void;
2078
- protected renderContent(container: HTMLElement): void;
2079
- destroy(): void;
2080
- }
2081
- }
2082
- declare module "choices-table" {
2083
- import { Question } from "survey-core";
2084
- import { SelectBase } from "selectBase";
2085
- export class ChoicesTableAdapter {
2086
- private model;
2087
- constructor(model: ChoicesTable);
2088
- create(container: HTMLElement): void;
2089
- destroy(node: HTMLElement): void;
2090
- }
2091
- export class ChoicesTable extends SelectBase {
2092
- private _choicesTableAdapter;
2093
- constructor(question: Question, data: Array<{
2094
- [index: string]: any;
2095
- }>, options?: Object, name?: string);
2096
- protected destroyContent(container: HTMLElement): void;
2097
- protected renderContent(container: HTMLElement): void;
2098
- destroy(): void;
2099
- }
2100
- }
2101
- declare module "entries/summary" {
2102
- export * from "localizationManager";
2103
- import "analytics-localization/farsi";
2104
- import "analytics-localization/french";
2105
- import "analytics-localization/german";
2106
- import "analytics-localization/norwegian";
2107
- import "analytics-localization/portuguese";
2108
- import "analytics-localization/russian";
2109
- import "analytics-localization/dutch";
2110
- import "analytics-localization/spanish";
2111
- import "analytics-localization/italian";
2112
- import "analytics-localization/arabic";
2113
- export * from "dataProvider";
2114
- export * from "number";
2115
- export * from "selectBase";
2116
- export * from "matrix";
2117
- export * from "boolean";
2118
- export * from "histogram";
2119
- export * from "visualizerBase";
2120
- export * from "visualizationManager";
2121
- export * from "visualizationPanel";
2122
- export * from "visualizationPanelDynamic";
2123
- export * from "visualizationMatrixDynamic";
2124
- export * from "visualizationMatrixDropdown";
2125
- export * from "alternativeVizualizersWrapper";
2126
- export * from "plotly/index";
2127
- export * from "wordcloud/wordcloud";
2128
- export * from "wordcloud/stopwords/index";
2129
- export * from "text";
2130
- export * from "choices-table";
2131
- export { DocumentHelper } from "utils/index";
2132
- }
2133
- declare module 'survey-analytics' { import main = require('entries/summary'); export = main; }
1
+ export * from './survey-analytics.types/entries/summary';