survey-analytics 1.9.85 → 1.9.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/survey.analytics.css +1 -1
- package/survey.analytics.d.ts +185 -100
- package/survey.analytics.datatables.css +1 -1
- package/survey.analytics.datatables.d.ts +55 -0
- package/survey.analytics.datatables.js +94 -22
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js +2 -2
- package/survey.analytics.js +259 -168
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js +3 -3
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.d.ts +55 -0
- package/survey.analytics.tabulator.js +96 -24
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +2 -2
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint": "eslint ./src --quiet",
|
|
21
21
|
"pre-push-check": "npm run lint && npm run test"
|
|
22
22
|
},
|
|
23
|
-
"version": "1.9.
|
|
23
|
+
"version": "1.9.87",
|
|
24
24
|
"name": "survey-analytics",
|
|
25
25
|
"description": "SurveyJS analytics Library.",
|
|
26
26
|
"main": "survey.analytics.js",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"jquery": "3.5.0",
|
|
73
73
|
"muuri": "^0.8.0",
|
|
74
74
|
"plotly.js-dist-min": "^2.11.1",
|
|
75
|
-
"survey-core": "1.9.
|
|
75
|
+
"survey-core": "1.9.87",
|
|
76
76
|
"tabulator-tables": "4.8.4",
|
|
77
77
|
"wordcloud": "^1.2.2"
|
|
78
78
|
},
|
package/survey.analytics.css
CHANGED
package/survey.analytics.d.ts
CHANGED
|
@@ -227,6 +227,60 @@ declare module "analytics-localization/french" {
|
|
|
227
227
|
responses: string;
|
|
228
228
|
};
|
|
229
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
|
+
}
|
|
230
284
|
declare module "analytics-localization/norwegian" {
|
|
231
285
|
export var norwegianStrings: {
|
|
232
286
|
groupButton: string;
|
|
@@ -621,16 +675,8 @@ declare module "analytics-localization/arabic" {
|
|
|
621
675
|
}
|
|
622
676
|
declare module "dataProvider" {
|
|
623
677
|
import { Event } from "survey-core";
|
|
624
|
-
/**
|
|
625
|
-
* Describes data info:
|
|
626
|
-
* dataName - question name, used as a key to obtain question data
|
|
627
|
-
* getValues - function returning an array of all possible values
|
|
628
|
-
* getLabels - function returning an array of human-friendly descriptions for values
|
|
629
|
-
* getSeriesValues - function returning an array of all possible series values
|
|
630
|
-
* getSeriesLabels - function returning an array of human-friendly descriptions for series values
|
|
631
|
-
*/
|
|
632
678
|
export interface IDataInfo {
|
|
633
|
-
|
|
679
|
+
name: string | Array<string>;
|
|
634
680
|
getValues(): Array<any>;
|
|
635
681
|
getLabels(): Array<string>;
|
|
636
682
|
getSeriesValues(): Array<string>;
|
|
@@ -675,7 +721,9 @@ declare module "visualizationManager" {
|
|
|
675
721
|
[index: string]: any;
|
|
676
722
|
}>, options?: Object) => any;
|
|
677
723
|
/**
|
|
678
|
-
*
|
|
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))
|
|
679
727
|
*/
|
|
680
728
|
export class VisualizationManager {
|
|
681
729
|
static alternativesVisualizer: any;
|
|
@@ -683,27 +731,39 @@ declare module "visualizationManager" {
|
|
|
683
731
|
[index: string]: Array<VisualizerConstructor>;
|
|
684
732
|
};
|
|
685
733
|
/**
|
|
686
|
-
*
|
|
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.
|
|
687
739
|
*/
|
|
688
|
-
static registerVisualizer(
|
|
740
|
+
static registerVisualizer(questionType: string, constructor: VisualizerConstructor): void;
|
|
689
741
|
/**
|
|
690
|
-
*
|
|
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.
|
|
691
747
|
*/
|
|
692
|
-
static unregisterVisualizer(
|
|
748
|
+
static unregisterVisualizer(questionType: string, constructor: VisualizerConstructor): void;
|
|
693
749
|
/**
|
|
694
|
-
*
|
|
750
|
+
* Unregisters a visualizer for all question types.
|
|
751
|
+
* @param constructor A function that returns a visualizer constructor to unregister.
|
|
695
752
|
*/
|
|
696
753
|
static unregisterVisualizerForAll(constructor: VisualizerConstructor): void;
|
|
697
754
|
/**
|
|
698
|
-
*
|
|
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).
|
|
699
757
|
*/
|
|
700
|
-
static getVisualizersByType(
|
|
758
|
+
static getVisualizersByType(questionType: string): VisualizerConstructor[];
|
|
701
759
|
/**
|
|
702
|
-
*
|
|
760
|
+
* Returns a constructor for an alternative visualizer selector.
|
|
761
|
+
* @see registerAlternativesVisualizer
|
|
703
762
|
*/
|
|
704
763
|
static getAlternativesVisualizer(): any;
|
|
705
764
|
/**
|
|
706
|
-
*
|
|
765
|
+
* Registers an alternative visualizer selector.
|
|
766
|
+
* @param constructor A function that returns a constructor for an alternative visualizer selector.
|
|
707
767
|
*/
|
|
708
768
|
static registerAlternativesVisualizer(constructor: any): void;
|
|
709
769
|
}
|
|
@@ -712,12 +772,16 @@ declare module "visualizerFactory" {
|
|
|
712
772
|
import { Question } from "survey-core";
|
|
713
773
|
import { VisualizerBase } from "visualizerBase";
|
|
714
774
|
/**
|
|
715
|
-
*
|
|
775
|
+
* An object that allows you to create individual visualizers without creating a [visualization panel](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel).
|
|
716
776
|
*/
|
|
717
777
|
export class VisualizerFactory {
|
|
718
778
|
/**
|
|
719
|
-
*
|
|
720
|
-
*
|
|
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.
|
|
721
785
|
*/
|
|
722
786
|
static createVisualizer(question: Question, data: Array<{
|
|
723
787
|
[index: string]: any;
|
|
@@ -788,8 +852,8 @@ declare module "visualizerBase" {
|
|
|
788
852
|
* Pass a `SurveyModel` instance if you want to use locales from the survey JSON schema.
|
|
789
853
|
* - `dataProvider`: `DataProvider`\
|
|
790
854
|
* A data provider for this visualizer.
|
|
791
|
-
* - `
|
|
792
|
-
* *(Optional)* The visualizer's
|
|
855
|
+
* - `type`: `String`\
|
|
856
|
+
* *(Optional)* The visualizer's type.
|
|
793
857
|
*
|
|
794
858
|
* [View Demo](https://surveyjs.io/dashboard/examples/how-to-plot-survey-data-in-custom-bar-chart/ (linkStyle))
|
|
795
859
|
*/
|
|
@@ -798,8 +862,8 @@ declare module "visualizerBase" {
|
|
|
798
862
|
options: {
|
|
799
863
|
[index: string]: any;
|
|
800
864
|
};
|
|
801
|
-
private
|
|
802
|
-
private
|
|
865
|
+
private _type?;
|
|
866
|
+
private _showToolbar;
|
|
803
867
|
private _footerVisualizer;
|
|
804
868
|
private _dataProvider;
|
|
805
869
|
labelTruncateLength: number;
|
|
@@ -847,10 +911,13 @@ declare module "visualizerBase" {
|
|
|
847
911
|
[index: string]: any;
|
|
848
912
|
}>, options?: {
|
|
849
913
|
[index: string]: any;
|
|
850
|
-
},
|
|
914
|
+
}, _type?: string);
|
|
851
915
|
protected get questionOptions(): any;
|
|
852
916
|
protected onDataChanged(): void;
|
|
853
|
-
|
|
917
|
+
/**
|
|
918
|
+
* Returns the identifier of a visualized question.
|
|
919
|
+
*/
|
|
920
|
+
get name(): string | Array<string>;
|
|
854
921
|
/**
|
|
855
922
|
* Indicates whether the visualizer displays a header. This property is `true` when a visualized question has a correct answer.
|
|
856
923
|
* @see hasFooter
|
|
@@ -882,9 +949,9 @@ declare module "visualizerBase" {
|
|
|
882
949
|
*/
|
|
883
950
|
registerToolbarItem(name: string, creator: (toolbar?: HTMLDivElement) => HTMLElement): void;
|
|
884
951
|
/**
|
|
885
|
-
* Returns the visualizer's
|
|
952
|
+
* Returns the visualizer's type.
|
|
886
953
|
*/
|
|
887
|
-
get
|
|
954
|
+
get type(): string;
|
|
888
955
|
/**
|
|
889
956
|
* Returns an array of survey results used to calculate values for visualization. If a user applies a filter, the array is also filtered.
|
|
890
957
|
*
|
|
@@ -909,7 +976,7 @@ declare module "visualizerBase" {
|
|
|
909
976
|
*/
|
|
910
977
|
destroy(): void;
|
|
911
978
|
/**
|
|
912
|
-
* Empties the toolbar, footer, and content containers.
|
|
979
|
+
* Empties the toolbar, header, footer, and content containers.
|
|
913
980
|
*
|
|
914
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.
|
|
915
982
|
*/
|
|
@@ -948,8 +1015,8 @@ declare module "visualizerBase" {
|
|
|
948
1015
|
*
|
|
949
1016
|
* Default value: `true`
|
|
950
1017
|
*/
|
|
951
|
-
get
|
|
952
|
-
set
|
|
1018
|
+
get showToolbar(): boolean;
|
|
1019
|
+
set showToolbar(newValue: boolean);
|
|
953
1020
|
/**
|
|
954
1021
|
* Returns an array of calculated and visualized values. If a user applies a filter, the array is also filtered.
|
|
955
1022
|
*
|
|
@@ -1232,7 +1299,7 @@ declare module "alternativeVizualizersWrapper" {
|
|
|
1232
1299
|
* quiet - set it to true if you don't want to rise a notification event
|
|
1233
1300
|
*
|
|
1234
1301
|
**/
|
|
1235
|
-
setVisualizer(
|
|
1302
|
+
setVisualizer(type: string, quiet?: boolean): void;
|
|
1236
1303
|
updateData(data: Array<{
|
|
1237
1304
|
[index: string]: any;
|
|
1238
1305
|
}>): void;
|
|
@@ -1245,9 +1312,29 @@ declare module "alternativeVizualizersWrapper" {
|
|
|
1245
1312
|
}
|
|
1246
1313
|
}
|
|
1247
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
|
+
*/
|
|
1248
1324
|
export interface IVisualizerPanelElement {
|
|
1325
|
+
/**
|
|
1326
|
+
* The name of a survey question visualized by this item.
|
|
1327
|
+
*/
|
|
1249
1328
|
name: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* The title of a survey question visualized by this item. The visualization item displays the same title.
|
|
1331
|
+
*/
|
|
1250
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
|
+
*/
|
|
1251
1338
|
isVisible: boolean;
|
|
1252
1339
|
isPublic: boolean;
|
|
1253
1340
|
chartType?: string;
|
|
@@ -1279,8 +1366,7 @@ declare module "filterInfo" {
|
|
|
1279
1366
|
}
|
|
1280
1367
|
declare module "layoutEngine" {
|
|
1281
1368
|
/**
|
|
1282
|
-
*
|
|
1283
|
-
* You can create a descendant of this class in order to override layout.
|
|
1369
|
+
* A base class used to implement custom layout engines or integrate third-party layout engines with SurveyJS Dashboard.
|
|
1284
1370
|
*/
|
|
1285
1371
|
export class LayoutEngine {
|
|
1286
1372
|
protected _allowed: boolean;
|
|
@@ -1290,15 +1376,17 @@ declare module "layoutEngine" {
|
|
|
1290
1376
|
protected updateCore(): void;
|
|
1291
1377
|
get allowed(): boolean;
|
|
1292
1378
|
/**
|
|
1293
|
-
*
|
|
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.
|
|
1294
1382
|
*/
|
|
1295
1383
|
start(container: HTMLElement): void;
|
|
1296
1384
|
/**
|
|
1297
|
-
*
|
|
1385
|
+
* Disables the dynamic layout.
|
|
1298
1386
|
*/
|
|
1299
1387
|
stop(): void;
|
|
1300
1388
|
/**
|
|
1301
|
-
* Updates
|
|
1389
|
+
* Updates the dynamic layout.
|
|
1302
1390
|
*/
|
|
1303
1391
|
update(): void;
|
|
1304
1392
|
add(elements: Array<HTMLElement>, options?: any): void;
|
|
@@ -1329,10 +1417,12 @@ declare module "visualizationPanel" {
|
|
|
1329
1417
|
renderedElement?: HTMLElement;
|
|
1330
1418
|
}
|
|
1331
1419
|
/**
|
|
1332
|
-
* Visualization Panel configuration. Pass it as the third argument to the `VisualizationPanel` constructor:
|
|
1420
|
+
* Visualization Panel configuration. Pass it as the third argument to the [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel) constructor:
|
|
1333
1421
|
*
|
|
1334
1422
|
* ```js
|
|
1335
|
-
*
|
|
1423
|
+
* import { VisualizationPanel } from "survey-analytics";
|
|
1424
|
+
*
|
|
1425
|
+
* const vizPanel = new VisualizationPanel(
|
|
1336
1426
|
* surveyQuestions,
|
|
1337
1427
|
* surveyResults,
|
|
1338
1428
|
* vizPanelOptions
|
|
@@ -1546,14 +1636,18 @@ declare module "visualizationPanel" {
|
|
|
1546
1636
|
stripHtmlFromTitles?: boolean;
|
|
1547
1637
|
}
|
|
1548
1638
|
/**
|
|
1549
|
-
*
|
|
1550
|
-
* <br/>
|
|
1551
|
-
* <br/> constructor parameters:
|
|
1552
|
-
* <br/> questions - an array of survey questions to visualize,
|
|
1553
|
-
* <br/> data - an array of answers in format of survey result,
|
|
1554
|
-
* <br/> options - object of the IVisualizationPanelOptions type, @see IVisualizationPanelOptions
|
|
1555
|
-
* <br/> elements - list of visual element descriptions
|
|
1639
|
+
* An object that visualizes survey results and allows users to analyze them.
|
|
1556
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))
|
|
1557
1651
|
*/
|
|
1558
1652
|
export class VisualizationPanel extends VisualizerBase {
|
|
1559
1653
|
protected questions: Array<any>;
|
|
@@ -1590,43 +1684,43 @@ declare module "visualizationPanel" {
|
|
|
1590
1684
|
private destroyVisualizers;
|
|
1591
1685
|
protected setLocale(newLocale: string): void;
|
|
1592
1686
|
/**
|
|
1593
|
-
* Returns
|
|
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.
|
|
1594
1688
|
*/
|
|
1595
1689
|
get allowDynamicLayout(): boolean;
|
|
1596
1690
|
/**
|
|
1597
|
-
* Returns
|
|
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.
|
|
1598
1692
|
*/
|
|
1599
1693
|
get allowHideQuestions(): boolean;
|
|
1600
|
-
/**
|
|
1601
|
-
* Returns whether the VisualizationPanel allows to make private/public individual inner visualizers for work with permissions.
|
|
1602
|
-
*/
|
|
1603
1694
|
get allowMakeQuestionsPrivate(): boolean;
|
|
1604
1695
|
private _layoutEngine;
|
|
1605
1696
|
/**
|
|
1606
|
-
* Returns
|
|
1697
|
+
* Returns a [`LayoutEngine`](https://surveyjs.io/dashboard/documentation/api-reference/layoutengine) instance used to arrange visualization items on `VisualizationPanel`.
|
|
1607
1698
|
*/
|
|
1608
1699
|
get layoutEngine(): LayoutEngine;
|
|
1609
1700
|
protected buildElements(questions: any[]): IVisualizerPanelElement[];
|
|
1610
1701
|
/**
|
|
1611
|
-
* Returns
|
|
1612
|
-
*
|
|
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
|
|
1613
1705
|
*/
|
|
1614
1706
|
getElements(): IVisualizerPanelElement[];
|
|
1615
1707
|
/**
|
|
1616
|
-
* Returns
|
|
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
|
|
1617
1713
|
*/
|
|
1618
1714
|
get visibleElements(): IVisualizerPanelRenderedElement[];
|
|
1619
1715
|
/**
|
|
1620
|
-
* Returns
|
|
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
|
|
1621
1721
|
*/
|
|
1622
1722
|
get hiddenElements(): IVisualizerPanelRenderedElement[];
|
|
1623
|
-
/**
|
|
1624
|
-
* Returns panel's public elements.
|
|
1625
|
-
*/
|
|
1626
1723
|
get publicElements(): IVisualizerPanelRenderedElement[];
|
|
1627
|
-
/**
|
|
1628
|
-
* Returns panel's private elements.
|
|
1629
|
-
*/
|
|
1630
1724
|
get privateElements(): IVisualizerPanelRenderedElement[];
|
|
1631
1725
|
protected get locales(): any;
|
|
1632
1726
|
/**
|
|
@@ -1634,63 +1728,53 @@ declare module "visualizationPanel" {
|
|
|
1634
1728
|
*/
|
|
1635
1729
|
getElement(name: string): IVisualizerPanelRenderedElement;
|
|
1636
1730
|
/**
|
|
1637
|
-
* Returns
|
|
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).
|
|
1638
1733
|
*/
|
|
1639
|
-
getVisualizer(
|
|
1734
|
+
getVisualizer(questionName: string): VisualizerBase;
|
|
1640
1735
|
/**
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1643
|
-
*
|
|
1644
|
-
*
|
|
1645
|
-
*
|
|
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.
|
|
1646
1751
|
*/
|
|
1647
1752
|
onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, VisualizationPanel, any>;
|
|
1648
1753
|
protected visibleElementsChanged(element: IVisualizerPanelElement, reason: string): void;
|
|
1649
|
-
/**
|
|
1650
|
-
* Fires when vizualization panel state changed.
|
|
1651
|
-
* sender - this panel
|
|
1652
|
-
* state - new state of the panel
|
|
1653
|
-
*/
|
|
1654
1754
|
onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, VisualizationPanel, any>;
|
|
1655
|
-
/**
|
|
1656
|
-
* Fires when permissions changed
|
|
1657
|
-
*/
|
|
1658
1755
|
onPermissionsChangedCallback: any;
|
|
1659
1756
|
protected renderPanelElement(element: IVisualizerPanelRenderedElement, container: HTMLElement): HTMLElement;
|
|
1660
1757
|
protected renderToolbar(container: HTMLElement): void;
|
|
1661
|
-
/**
|
|
1662
|
-
* Renders all questions into given HTML container element.
|
|
1663
|
-
* container - HTML element to render the panel
|
|
1664
|
-
*/
|
|
1665
1758
|
renderContent(container: HTMLElement): void;
|
|
1666
1759
|
protected destroyContent(container: HTMLElement): void;
|
|
1667
1760
|
/**
|
|
1668
|
-
* Redraws
|
|
1761
|
+
* Redraws the `VisualizationPanel` and all its content.
|
|
1669
1762
|
*/
|
|
1670
1763
|
refresh(): void;
|
|
1671
|
-
/**
|
|
1672
|
-
* Updates layout of visualizer inner content.
|
|
1673
|
-
*/
|
|
1674
1764
|
layout(): void;
|
|
1675
1765
|
/**
|
|
1676
|
-
*
|
|
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
|
|
1677
1770
|
*/
|
|
1678
1771
|
setFilter(questionName: string, selectedValue: any): void;
|
|
1679
|
-
/**
|
|
1680
|
-
* Gets vizualization panel state.
|
|
1681
|
-
*/
|
|
1682
1772
|
get state(): IState;
|
|
1683
1773
|
/**
|
|
1684
1774
|
* Sets vizualization panel state.
|
|
1685
1775
|
*/
|
|
1686
1776
|
set state(newState: IState);
|
|
1687
|
-
/**
|
|
1688
|
-
* Gets vizualization panel permissions.
|
|
1689
|
-
*/
|
|
1690
1777
|
get permissions(): IPermission[];
|
|
1691
|
-
/**
|
|
1692
|
-
* Sets vizualization panel permissions.
|
|
1693
|
-
*/
|
|
1694
1778
|
set permissions(permissions: IPermission[]);
|
|
1695
1779
|
destroy(): void;
|
|
1696
1780
|
}
|
|
@@ -1708,7 +1792,7 @@ declare module "visualizationPanelDynamic" {
|
|
|
1708
1792
|
}, name?: string);
|
|
1709
1793
|
protected setLocale(newLocale: string): void;
|
|
1710
1794
|
private onAfterRenderPanelCallback;
|
|
1711
|
-
get
|
|
1795
|
+
get type(): string;
|
|
1712
1796
|
private updatePanelVisualizerData;
|
|
1713
1797
|
updateData(data: Array<{
|
|
1714
1798
|
[index: string]: any;
|
|
@@ -1727,7 +1811,7 @@ declare module "visualizationMatrixDynamic" {
|
|
|
1727
1811
|
constructor(question: Question, data: Array<{
|
|
1728
1812
|
[index: string]: any;
|
|
1729
1813
|
}>, options?: Object);
|
|
1730
|
-
get
|
|
1814
|
+
get type(): string;
|
|
1731
1815
|
getQuestions(): Question[];
|
|
1732
1816
|
}
|
|
1733
1817
|
}
|
|
@@ -1861,7 +1945,7 @@ declare module "matrixDropdownGrouped" {
|
|
|
1861
1945
|
[index: string]: any;
|
|
1862
1946
|
}>, options?: Object, name?: string);
|
|
1863
1947
|
protected get matrixQuestion(): QuestionMatrixDropdownModel;
|
|
1864
|
-
get
|
|
1948
|
+
get name(): string | Array<string>;
|
|
1865
1949
|
getSeriesValues(): Array<string>;
|
|
1866
1950
|
getSeriesLabels(): Array<string>;
|
|
1867
1951
|
valuesSource(): Array<ItemValue>;
|
|
@@ -2018,6 +2102,7 @@ declare module "entries/summary" {
|
|
|
2018
2102
|
export * from "localizationManager";
|
|
2019
2103
|
import "analytics-localization/farsi";
|
|
2020
2104
|
import "analytics-localization/french";
|
|
2105
|
+
import "analytics-localization/german";
|
|
2021
2106
|
import "analytics-localization/norwegian";
|
|
2022
2107
|
import "analytics-localization/portuguese";
|
|
2023
2108
|
import "analytics-localization/russian";
|
|
@@ -227,6 +227,60 @@ declare module "analytics-localization/french" {
|
|
|
227
227
|
responses: string;
|
|
228
228
|
};
|
|
229
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
|
+
}
|
|
230
284
|
declare module "analytics-localization/norwegian" {
|
|
231
285
|
export var norwegianStrings: {
|
|
232
286
|
groupButton: string;
|
|
@@ -940,6 +994,7 @@ declare module "entries/datatables" {
|
|
|
940
994
|
export * from "localizationManager";
|
|
941
995
|
import "analytics-localization/farsi";
|
|
942
996
|
import "analytics-localization/french";
|
|
997
|
+
import "analytics-localization/german";
|
|
943
998
|
import "analytics-localization/norwegian";
|
|
944
999
|
import "analytics-localization/portuguese";
|
|
945
1000
|
import "analytics-localization/russian";
|