survey-analytics 1.9.85 → 1.9.86
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 +179 -97
- 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 +253 -165
- 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.86",
|
|
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.86",
|
|
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;
|
|
@@ -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,10 @@ 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
|
-
get
|
|
917
|
+
get name(): string | Array<string>;
|
|
854
918
|
/**
|
|
855
919
|
* Indicates whether the visualizer displays a header. This property is `true` when a visualized question has a correct answer.
|
|
856
920
|
* @see hasFooter
|
|
@@ -884,7 +948,7 @@ declare module "visualizerBase" {
|
|
|
884
948
|
/**
|
|
885
949
|
* Returns the visualizer's name.
|
|
886
950
|
*/
|
|
887
|
-
get
|
|
951
|
+
get type(): string;
|
|
888
952
|
/**
|
|
889
953
|
* Returns an array of survey results used to calculate values for visualization. If a user applies a filter, the array is also filtered.
|
|
890
954
|
*
|
|
@@ -909,7 +973,7 @@ declare module "visualizerBase" {
|
|
|
909
973
|
*/
|
|
910
974
|
destroy(): void;
|
|
911
975
|
/**
|
|
912
|
-
* Empties the toolbar, footer, and content containers.
|
|
976
|
+
* Empties the toolbar, header, footer, and content containers.
|
|
913
977
|
*
|
|
914
978
|
* 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
979
|
*/
|
|
@@ -948,8 +1012,8 @@ declare module "visualizerBase" {
|
|
|
948
1012
|
*
|
|
949
1013
|
* Default value: `true`
|
|
950
1014
|
*/
|
|
951
|
-
get
|
|
952
|
-
set
|
|
1015
|
+
get showToolbar(): boolean;
|
|
1016
|
+
set showToolbar(newValue: boolean);
|
|
953
1017
|
/**
|
|
954
1018
|
* Returns an array of calculated and visualized values. If a user applies a filter, the array is also filtered.
|
|
955
1019
|
*
|
|
@@ -1232,7 +1296,7 @@ declare module "alternativeVizualizersWrapper" {
|
|
|
1232
1296
|
* quiet - set it to true if you don't want to rise a notification event
|
|
1233
1297
|
*
|
|
1234
1298
|
**/
|
|
1235
|
-
setVisualizer(
|
|
1299
|
+
setVisualizer(type: string, quiet?: boolean): void;
|
|
1236
1300
|
updateData(data: Array<{
|
|
1237
1301
|
[index: string]: any;
|
|
1238
1302
|
}>): void;
|
|
@@ -1245,9 +1309,29 @@ declare module "alternativeVizualizersWrapper" {
|
|
|
1245
1309
|
}
|
|
1246
1310
|
}
|
|
1247
1311
|
declare module "config" {
|
|
1312
|
+
/**
|
|
1313
|
+
* An interface that describes a visualization item (chart, gauge, etc.).
|
|
1314
|
+
*
|
|
1315
|
+
* To access `IVisualizerPanelElement` objects, you can use the following properties and methods of `VisualizationPanel`:
|
|
1316
|
+
*
|
|
1317
|
+
* - [`getElements()`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel#getElements)
|
|
1318
|
+
* - [`visibleElements`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel#visibleElements)
|
|
1319
|
+
* - [`hiddenElements`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel#hiddenElements)
|
|
1320
|
+
*/
|
|
1248
1321
|
export interface IVisualizerPanelElement {
|
|
1322
|
+
/**
|
|
1323
|
+
* The name of a survey question visualized by this item.
|
|
1324
|
+
*/
|
|
1249
1325
|
name: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* The title of a survey question visualized by this item. The visualization item displays the same title.
|
|
1328
|
+
*/
|
|
1250
1329
|
displayName: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* Indicates whether the visualization item is currently visible.
|
|
1332
|
+
*
|
|
1333
|
+
* 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`.
|
|
1334
|
+
*/
|
|
1251
1335
|
isVisible: boolean;
|
|
1252
1336
|
isPublic: boolean;
|
|
1253
1337
|
chartType?: string;
|
|
@@ -1279,8 +1363,7 @@ declare module "filterInfo" {
|
|
|
1279
1363
|
}
|
|
1280
1364
|
declare module "layoutEngine" {
|
|
1281
1365
|
/**
|
|
1282
|
-
*
|
|
1283
|
-
* You can create a descendant of this class in order to override layout.
|
|
1366
|
+
* A base class used to implement custom layout engines or integrate third-party layout engines with SurveyJS Dashboard.
|
|
1284
1367
|
*/
|
|
1285
1368
|
export class LayoutEngine {
|
|
1286
1369
|
protected _allowed: boolean;
|
|
@@ -1290,15 +1373,17 @@ declare module "layoutEngine" {
|
|
|
1290
1373
|
protected updateCore(): void;
|
|
1291
1374
|
get allowed(): boolean;
|
|
1292
1375
|
/**
|
|
1293
|
-
*
|
|
1376
|
+
* Enables the dynamic layout in a given HTML element.
|
|
1377
|
+
*
|
|
1378
|
+
* This method should arrange visualization items based on the available screen space and allow users to reorder them via drag and drop.
|
|
1294
1379
|
*/
|
|
1295
1380
|
start(container: HTMLElement): void;
|
|
1296
1381
|
/**
|
|
1297
|
-
*
|
|
1382
|
+
* Disables the dynamic layout.
|
|
1298
1383
|
*/
|
|
1299
1384
|
stop(): void;
|
|
1300
1385
|
/**
|
|
1301
|
-
* Updates
|
|
1386
|
+
* Updates the dynamic layout.
|
|
1302
1387
|
*/
|
|
1303
1388
|
update(): void;
|
|
1304
1389
|
add(elements: Array<HTMLElement>, options?: any): void;
|
|
@@ -1329,10 +1414,12 @@ declare module "visualizationPanel" {
|
|
|
1329
1414
|
renderedElement?: HTMLElement;
|
|
1330
1415
|
}
|
|
1331
1416
|
/**
|
|
1332
|
-
* Visualization Panel configuration. Pass it as the third argument to the `VisualizationPanel` constructor:
|
|
1417
|
+
* Visualization Panel configuration. Pass it as the third argument to the [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel) constructor:
|
|
1333
1418
|
*
|
|
1334
1419
|
* ```js
|
|
1335
|
-
*
|
|
1420
|
+
* import { VisualizationPanel } from "survey-analytics";
|
|
1421
|
+
*
|
|
1422
|
+
* const vizPanel = new VisualizationPanel(
|
|
1336
1423
|
* surveyQuestions,
|
|
1337
1424
|
* surveyResults,
|
|
1338
1425
|
* vizPanelOptions
|
|
@@ -1546,14 +1633,18 @@ declare module "visualizationPanel" {
|
|
|
1546
1633
|
stripHtmlFromTitles?: boolean;
|
|
1547
1634
|
}
|
|
1548
1635
|
/**
|
|
1549
|
-
*
|
|
1550
|
-
*
|
|
1551
|
-
*
|
|
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
|
|
1636
|
+
* An object that visualizes survey results and allows users to analyze them.
|
|
1637
|
+
*
|
|
1638
|
+
* Constructor parameters:
|
|
1556
1639
|
*
|
|
1640
|
+
* - `questions`: Array\<[`Question`](https://surveyjs.io/form-library/documentation/api-reference/question)\>\
|
|
1641
|
+
* 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.
|
|
1642
|
+
* - `data`: `Array<any>`\
|
|
1643
|
+
* Survey results.
|
|
1644
|
+
* - `options`: [`IVisualizationPanelOptions`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizationpaneloptions)\
|
|
1645
|
+
* Visualization Panel configuration.
|
|
1646
|
+
*
|
|
1647
|
+
* [View Demo](https://surveyjs.io/dashboard/examples/interactive-survey-data-dashboard/ (linkStyle))
|
|
1557
1648
|
*/
|
|
1558
1649
|
export class VisualizationPanel extends VisualizerBase {
|
|
1559
1650
|
protected questions: Array<any>;
|
|
@@ -1590,43 +1681,43 @@ declare module "visualizationPanel" {
|
|
|
1590
1681
|
private destroyVisualizers;
|
|
1591
1682
|
protected setLocale(newLocale: string): void;
|
|
1592
1683
|
/**
|
|
1593
|
-
* Returns
|
|
1684
|
+
* 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
1685
|
*/
|
|
1595
1686
|
get allowDynamicLayout(): boolean;
|
|
1596
1687
|
/**
|
|
1597
|
-
* Returns
|
|
1688
|
+
* 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
1689
|
*/
|
|
1599
1690
|
get allowHideQuestions(): boolean;
|
|
1600
|
-
/**
|
|
1601
|
-
* Returns whether the VisualizationPanel allows to make private/public individual inner visualizers for work with permissions.
|
|
1602
|
-
*/
|
|
1603
1691
|
get allowMakeQuestionsPrivate(): boolean;
|
|
1604
1692
|
private _layoutEngine;
|
|
1605
1693
|
/**
|
|
1606
|
-
* Returns
|
|
1694
|
+
* Returns a [`LayoutEngine`](https://surveyjs.io/dashboard/documentation/api-reference/layoutengine) instance used to arrange visualization items on `VisualizationPanel`.
|
|
1607
1695
|
*/
|
|
1608
1696
|
get layoutEngine(): LayoutEngine;
|
|
1609
1697
|
protected buildElements(questions: any[]): IVisualizerPanelElement[];
|
|
1610
1698
|
/**
|
|
1611
|
-
* Returns
|
|
1612
|
-
*
|
|
1699
|
+
* Returns an array of [`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement) objects with information about visualization items.
|
|
1700
|
+
* @see visibleElements
|
|
1701
|
+
* @see hiddenElements
|
|
1613
1702
|
*/
|
|
1614
1703
|
getElements(): IVisualizerPanelElement[];
|
|
1615
1704
|
/**
|
|
1616
|
-
* Returns
|
|
1705
|
+
* Returns an array of [`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement) objects with information about currently visible visualization items.
|
|
1706
|
+
*
|
|
1707
|
+
* 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`.
|
|
1708
|
+
* @see hiddenElements
|
|
1709
|
+
* @see getElements
|
|
1617
1710
|
*/
|
|
1618
1711
|
get visibleElements(): IVisualizerPanelRenderedElement[];
|
|
1619
1712
|
/**
|
|
1620
|
-
* Returns
|
|
1713
|
+
* Returns an array of [`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement) objects with information about currently hidden visualization items.
|
|
1714
|
+
*
|
|
1715
|
+
* 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`.
|
|
1716
|
+
* @see visibleElements
|
|
1717
|
+
* @see getElements
|
|
1621
1718
|
*/
|
|
1622
1719
|
get hiddenElements(): IVisualizerPanelRenderedElement[];
|
|
1623
|
-
/**
|
|
1624
|
-
* Returns panel's public elements.
|
|
1625
|
-
*/
|
|
1626
1720
|
get publicElements(): IVisualizerPanelRenderedElement[];
|
|
1627
|
-
/**
|
|
1628
|
-
* Returns panel's private elements.
|
|
1629
|
-
*/
|
|
1630
1721
|
get privateElements(): IVisualizerPanelRenderedElement[];
|
|
1631
1722
|
protected get locales(): any;
|
|
1632
1723
|
/**
|
|
@@ -1634,63 +1725,53 @@ declare module "visualizationPanel" {
|
|
|
1634
1725
|
*/
|
|
1635
1726
|
getElement(name: string): IVisualizerPanelRenderedElement;
|
|
1636
1727
|
/**
|
|
1637
|
-
* Returns
|
|
1728
|
+
* Returns a [visualizer](https://surveyjs.io/dashboard/documentation/api-reference/visualizerbase) that visualizes a specified survey question.
|
|
1729
|
+
* @param questionName A question [name](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
|
1638
1730
|
*/
|
|
1639
|
-
getVisualizer(
|
|
1731
|
+
getVisualizer(questionName: string): VisualizerBase;
|
|
1640
1732
|
/**
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1643
|
-
*
|
|
1644
|
-
*
|
|
1645
|
-
*
|
|
1733
|
+
* 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).
|
|
1734
|
+
*
|
|
1735
|
+
* Parameters:
|
|
1736
|
+
*
|
|
1737
|
+
* - `sender`: [`VisualizationPanel`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel)\
|
|
1738
|
+
* A `VisualizationPanel` that raised the event.
|
|
1739
|
+
*
|
|
1740
|
+
* - `options.elements`: Array\<[`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement)\>\
|
|
1741
|
+
* Information about visualization items rendered by this `VisualizationPanel`.
|
|
1742
|
+
*
|
|
1743
|
+
* - `options.changed`: [`IVisualizerPanelElement`](https://surveyjs.io/dashboard/documentation/api-reference/ivisualizerpanelelement)\
|
|
1744
|
+
* A visualization item that has been changed.
|
|
1745
|
+
*
|
|
1746
|
+
* - `options.reason`: `"ADDED"` | `"REMOVED"` | `"MOVED"`\
|
|
1747
|
+
* Indicates the reason why the event has been raised.
|
|
1646
1748
|
*/
|
|
1647
1749
|
onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, VisualizationPanel, any>;
|
|
1648
1750
|
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
1751
|
onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, VisualizationPanel, any>;
|
|
1655
|
-
/**
|
|
1656
|
-
* Fires when permissions changed
|
|
1657
|
-
*/
|
|
1658
1752
|
onPermissionsChangedCallback: any;
|
|
1659
1753
|
protected renderPanelElement(element: IVisualizerPanelRenderedElement, container: HTMLElement): HTMLElement;
|
|
1660
1754
|
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
1755
|
renderContent(container: HTMLElement): void;
|
|
1666
1756
|
protected destroyContent(container: HTMLElement): void;
|
|
1667
1757
|
/**
|
|
1668
|
-
* Redraws
|
|
1758
|
+
* Redraws the `VisualizationPanel` and all its content.
|
|
1669
1759
|
*/
|
|
1670
1760
|
refresh(): void;
|
|
1671
|
-
/**
|
|
1672
|
-
* Updates layout of visualizer inner content.
|
|
1673
|
-
*/
|
|
1674
1761
|
layout(): void;
|
|
1675
1762
|
/**
|
|
1676
|
-
*
|
|
1763
|
+
* Filters visualized data based on a specified question name and value. This method is called when a user clicks a chart point.
|
|
1764
|
+
* @param questionName A question [name](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
|
1765
|
+
* @param selectedValue
|
|
1766
|
+
* @see IVisualizationPanelOptions.allowSelection
|
|
1677
1767
|
*/
|
|
1678
1768
|
setFilter(questionName: string, selectedValue: any): void;
|
|
1679
|
-
/**
|
|
1680
|
-
* Gets vizualization panel state.
|
|
1681
|
-
*/
|
|
1682
1769
|
get state(): IState;
|
|
1683
1770
|
/**
|
|
1684
1771
|
* Sets vizualization panel state.
|
|
1685
1772
|
*/
|
|
1686
1773
|
set state(newState: IState);
|
|
1687
|
-
/**
|
|
1688
|
-
* Gets vizualization panel permissions.
|
|
1689
|
-
*/
|
|
1690
1774
|
get permissions(): IPermission[];
|
|
1691
|
-
/**
|
|
1692
|
-
* Sets vizualization panel permissions.
|
|
1693
|
-
*/
|
|
1694
1775
|
set permissions(permissions: IPermission[]);
|
|
1695
1776
|
destroy(): void;
|
|
1696
1777
|
}
|
|
@@ -1708,7 +1789,7 @@ declare module "visualizationPanelDynamic" {
|
|
|
1708
1789
|
}, name?: string);
|
|
1709
1790
|
protected setLocale(newLocale: string): void;
|
|
1710
1791
|
private onAfterRenderPanelCallback;
|
|
1711
|
-
get
|
|
1792
|
+
get type(): string;
|
|
1712
1793
|
private updatePanelVisualizerData;
|
|
1713
1794
|
updateData(data: Array<{
|
|
1714
1795
|
[index: string]: any;
|
|
@@ -1727,7 +1808,7 @@ declare module "visualizationMatrixDynamic" {
|
|
|
1727
1808
|
constructor(question: Question, data: Array<{
|
|
1728
1809
|
[index: string]: any;
|
|
1729
1810
|
}>, options?: Object);
|
|
1730
|
-
get
|
|
1811
|
+
get type(): string;
|
|
1731
1812
|
getQuestions(): Question[];
|
|
1732
1813
|
}
|
|
1733
1814
|
}
|
|
@@ -1861,7 +1942,7 @@ declare module "matrixDropdownGrouped" {
|
|
|
1861
1942
|
[index: string]: any;
|
|
1862
1943
|
}>, options?: Object, name?: string);
|
|
1863
1944
|
protected get matrixQuestion(): QuestionMatrixDropdownModel;
|
|
1864
|
-
get
|
|
1945
|
+
get name(): string | Array<string>;
|
|
1865
1946
|
getSeriesValues(): Array<string>;
|
|
1866
1947
|
getSeriesLabels(): Array<string>;
|
|
1867
1948
|
valuesSource(): Array<ItemValue>;
|
|
@@ -2018,6 +2099,7 @@ declare module "entries/summary" {
|
|
|
2018
2099
|
export * from "localizationManager";
|
|
2019
2100
|
import "analytics-localization/farsi";
|
|
2020
2101
|
import "analytics-localization/french";
|
|
2102
|
+
import "analytics-localization/german";
|
|
2021
2103
|
import "analytics-localization/norwegian";
|
|
2022
2104
|
import "analytics-localization/portuguese";
|
|
2023
2105
|
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";
|