survey-analytics 1.11.4 → 1.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/package.json +2 -2
  2. package/survey-analytics-datatables.types/utils/index.d.ts +2 -0
  3. package/survey-analytics-tabulator.types/utils/index.d.ts +2 -0
  4. package/survey-analytics.types/choices-table.d.ts +2 -2
  5. package/survey-analytics.types/dataProvider.d.ts +24 -22
  6. package/survey-analytics.types/histogram.d.ts +2 -1
  7. package/survey-analytics.types/matrix.d.ts +1 -1
  8. package/survey-analytics.types/matrixDropdownGrouped.d.ts +2 -2
  9. package/survey-analytics.types/nps.d.ts +16 -9
  10. package/survey-analytics.types/number.d.ts +2 -1
  11. package/survey-analytics.types/plotly/boolean.d.ts +1 -1
  12. package/survey-analytics.types/plotly/histogram.d.ts +2 -2
  13. package/survey-analytics.types/plotly/matrix.d.ts +1 -1
  14. package/survey-analytics.types/plotly/matrixdropdown-grouped.d.ts +1 -1
  15. package/survey-analytics.types/plotly/ranking.d.ts +1 -1
  16. package/survey-analytics.types/plotly/rating.d.ts +2 -2
  17. package/survey-analytics.types/plotly/selectBase.d.ts +3 -3
  18. package/survey-analytics.types/plotly/setup.d.ts +7 -7
  19. package/survey-analytics.types/selectBase.d.ts +3 -2
  20. package/survey-analytics.types/text.d.ts +3 -3
  21. package/survey-analytics.types/utils/index.d.ts +2 -0
  22. package/survey-analytics.types/visualizerBase.d.ts +23 -10
  23. package/survey-analytics.types/wordcloud/wordcloud.d.ts +4 -3
  24. package/survey.analytics.css +27 -2
  25. package/survey.analytics.datatables.css +1 -1
  26. package/survey.analytics.datatables.js +110 -6
  27. package/survey.analytics.datatables.min.css +1 -1
  28. package/survey.analytics.datatables.min.js +2 -2
  29. package/survey.analytics.js +1018 -585
  30. package/survey.analytics.min.css +3 -3
  31. package/survey.analytics.min.js +3 -3
  32. package/survey.analytics.tabulator.css +1 -1
  33. package/survey.analytics.tabulator.js +123 -17
  34. package/survey.analytics.tabulator.min.css +1 -1
  35. 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.11.4",
23
+ "version": "1.11.6",
24
24
  "name": "survey-analytics",
25
25
  "description": "SurveyJS analytics Library.",
26
26
  "main": "survey.analytics.js",
@@ -107,7 +107,7 @@
107
107
  "peerDependencies": {
108
108
  "@types/datatables.net": "^1.10.21",
109
109
  "@types/plotly.js-dist-min": "^2.3.0",
110
- "survey-core": "1.11.4"
110
+ "survey-core": "1.11.6"
111
111
  },
112
112
  "husky": {
113
113
  "hooks": {
@@ -18,6 +18,7 @@ export declare var options: {
18
18
  };
19
19
  export declare function allowDomRendering(): boolean;
20
20
  export declare function createCommercialLicenseLink(): HTMLElement;
21
+ export declare function createLoadingIndicator(): HTMLElement;
21
22
  export declare class DataHelper {
22
23
  static zipArrays(...arrays: any[]): any[][];
23
24
  static unzipArrays(zipArray: any[][]): any[][];
@@ -35,3 +36,4 @@ export declare function createImagesContainer(links: Array<{
35
36
  name: string;
36
37
  content: any;
37
38
  }>): HTMLElement;
39
+ export declare function toPrecision(value: number, precision?: number): number;
@@ -18,6 +18,7 @@ export declare var options: {
18
18
  };
19
19
  export declare function allowDomRendering(): boolean;
20
20
  export declare function createCommercialLicenseLink(): HTMLElement;
21
+ export declare function createLoadingIndicator(): HTMLElement;
21
22
  export declare class DataHelper {
22
23
  static zipArrays(...arrays: any[]): any[][];
23
24
  static unzipArrays(zipArray: any[][]): any[][];
@@ -35,3 +36,4 @@ export declare function createImagesContainer(links: Array<{
35
36
  name: string;
36
37
  content: any;
37
38
  }>): HTMLElement;
39
+ export declare function toPrecision(value: number, precision?: number): number;
@@ -3,7 +3,7 @@ import { SelectBase } from "./selectBase";
3
3
  export declare class ChoicesTableAdapter {
4
4
  private model;
5
5
  constructor(model: ChoicesTable);
6
- create(container: HTMLElement): void;
6
+ create(container: HTMLElement): Promise<void>;
7
7
  destroy(node: HTMLElement): void;
8
8
  }
9
9
  export declare class ChoicesTable extends SelectBase {
@@ -12,6 +12,6 @@ export declare class ChoicesTable extends SelectBase {
12
12
  [index: string]: any;
13
13
  }>, options?: Object, name?: string);
14
14
  protected destroyContent(container: HTMLElement): void;
15
- protected renderContent(container: HTMLElement): void;
15
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
16
16
  destroy(): void;
17
17
  }
@@ -1,40 +1,42 @@
1
1
  import { Event } from "survey-core";
2
- export interface IDataInfo {
3
- name: string | Array<string>;
4
- getValues(): Array<any>;
5
- getLabels(): Array<string>;
6
- getSeriesValues(): Array<string>;
7
- getSeriesLabels(): Array<string>;
8
- }
2
+ export type SummaryFilter = {
3
+ field: string;
4
+ type: string;
5
+ value: any;
6
+ };
7
+ export type GetDataUsingCallbackFn = (params: {
8
+ visualizer: any;
9
+ filter?: Array<SummaryFilter>;
10
+ callback?: (response: {
11
+ data: Array<Object>;
12
+ error?: any;
13
+ }) => void;
14
+ }) => void;
15
+ export type GetDataUsingPromiseFn = (params: {
16
+ visualizer: any;
17
+ filter?: Array<SummaryFilter>;
18
+ }) => Promise<Array<Object>>;
19
+ export type GetDataFn = GetDataUsingCallbackFn | GetDataUsingPromiseFn;
9
20
  export declare class DataProvider {
10
21
  private _data;
11
- private _getDataCore;
12
22
  static seriesMarkerKey: string;
13
23
  private _filteredData;
14
- private _statisticsCache;
15
24
  protected filterValues: {
16
25
  [index: string]: any;
17
26
  };
18
- private getStatisticsCacheKey;
19
- constructor(_data?: Array<any>, _getDataCore?: (dataInfo: IDataInfo) => number[][]);
20
- reset(dataInfo?: IDataInfo): void;
27
+ constructor(_data?: Array<any> | GetDataFn);
21
28
  get data(): Array<any>;
22
- set data(data: Array<any>);
23
- get filteredData(): {
24
- [index: string]: any;
25
- }[];
29
+ set data(data: Array<any> | GetDataFn);
30
+ get dataFn(): GetDataFn;
31
+ get filteredData(): Array<any>;
26
32
  /**
27
33
  * Sets filter by question name and value.
28
34
  */
29
35
  setFilter(questionName: string, selectedValue: any): void;
30
- protected getDataCore(dataInfo: IDataInfo): number[][] | number[][][];
31
- /**
32
- * Returns calculated statisctics for the IDataInfo object.
33
- */
34
- getData(dataInfo: IDataInfo): any[];
35
36
  /**
36
37
  * Fires when data has been changed.
37
38
  */
38
39
  onDataChanged: Event<(sender: DataProvider, options: any) => any, DataProvider, any>;
39
- protected raiseDataChanged(): void;
40
+ raiseDataChanged(questionName?: string): void;
41
+ getFilters(): SummaryFilter[];
40
42
  }
@@ -34,5 +34,6 @@ export declare class HistogramModel extends SelectBase {
34
34
  getLabels(): Array<string>;
35
35
  get hasCustomIntervals(): boolean;
36
36
  get intervals(): any;
37
- getCalculatedValues(): any;
37
+ convertFromExternalData(externalCalculatedData: any): any[];
38
+ protected getCalculatedValuesCore(): Array<any>;
38
39
  }
@@ -13,5 +13,5 @@ export declare class Matrix extends SelectBase {
13
13
  private getHasAnswersInAllSeriesArray;
14
14
  private getHasAnswersInSeries;
15
15
  protected hideEmptyAnswersInData(answersData: IAnswersData): IAnswersData;
16
- getCalculatedValues(): any[];
16
+ protected getCalculatedValuesCore(): Array<any>;
17
17
  }
@@ -5,10 +5,10 @@ export declare class MatrixDropdownGrouped extends SelectBase {
5
5
  [index: string]: any;
6
6
  }>, options?: Object, name?: string);
7
7
  protected get matrixQuestion(): QuestionMatrixDropdownModel;
8
- get name(): string | Array<string>;
8
+ get dataNames(): Array<string>;
9
9
  getSeriesValues(): Array<string>;
10
10
  getSeriesLabels(): Array<string>;
11
11
  valuesSource(): Array<ItemValue>;
12
12
  protected isSupportMissingAnswers(): boolean;
13
- getCalculatedValues(): any[];
13
+ protected getCalculatedValuesCore(): Array<any>;
14
14
  }
@@ -1,11 +1,11 @@
1
1
  import { Question } from "survey-core";
2
2
  import { VisualizerBase } from "./visualizerBase";
3
3
  import "./nps.scss";
4
- export declare class NpsVizualizerWidget {
4
+ export declare class NpsVisualizerWidget {
5
5
  private _model;
6
6
  private _data;
7
7
  private _renderedTarget;
8
- constructor(_model: NpsVizualizer, _data: {
8
+ constructor(_model: NpsVisualizer, _data: {
9
9
  detractors: number;
10
10
  passive: number;
11
11
  promoters: number;
@@ -13,23 +13,30 @@ export declare class NpsVizualizerWidget {
13
13
  });
14
14
  private renderScorePart;
15
15
  render(target: HTMLDivElement): void;
16
+ get npsScore(): number;
17
+ get promotersPercent(): number;
18
+ get passivePercent(): number;
19
+ get detractorsPercent(): number;
16
20
  dispose(): void;
17
21
  }
18
22
  export declare class NpsAdapter {
19
23
  private model;
20
- private _npsVizualizer;
21
- constructor(model: NpsVizualizer);
22
- get npsVizualizer(): any;
23
- create(element: HTMLElement): any;
24
+ private _npsVisualizer;
25
+ constructor(model: NpsVisualizer);
26
+ get npsVisualizer(): any;
27
+ create(element: HTMLElement): Promise<any>;
24
28
  destroy(node: HTMLElement): void;
25
29
  }
26
- export declare class NpsVizualizer extends VisualizerBase {
30
+ export declare class NpsVisualizer extends VisualizerBase {
31
+ static DetractorScore: number;
32
+ static PromoterScore: number;
33
+ precision: number;
27
34
  private _npsAdapter;
28
35
  constructor(question: Question, data: Array<{
29
36
  [index: string]: any;
30
37
  }>, options?: Object, name?: string);
31
- getCalculatedValues(): any;
38
+ protected getCalculatedValuesCore(): any;
32
39
  protected destroyContent(container: HTMLElement): void;
33
- protected renderContent(container: HTMLElement): void;
40
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
34
41
  destroy(): void;
35
42
  }
@@ -21,5 +21,6 @@ export declare class NumberModel extends VisualizerBase {
21
21
  generateText(maxValue: number, minValue: number, stepsCount: number): any;
22
22
  generateValues(maxValue: number, stepsCount: number): any[];
23
23
  generateColors(maxValue: number, minValue: number, stepsCount: number): any[];
24
- getCalculatedValues(): any;
24
+ convertFromExternalData(externalCalculatedData: any): any[];
25
+ protected getCalculatedValuesCore(): Array<any>;
25
26
  }
@@ -12,5 +12,5 @@ export declare class BooleanPlotly extends BooleanModel {
12
12
  [index: string]: any;
13
13
  }>, options?: Object, name?: string);
14
14
  protected destroyContent(container: HTMLElement): void;
15
- protected renderContent(container: HTMLElement): void;
15
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
16
16
  }
@@ -7,7 +7,7 @@ export declare class HistogramPlotly extends HistogramModel {
7
7
  [index: string]: any;
8
8
  }>, options?: Object, name?: string);
9
9
  protected destroyContent(container: HTMLElement): void;
10
- protected renderContent(container: HTMLElement): void;
11
- getCalculatedValues(): any[];
10
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
11
+ protected getCalculatedValuesCore(): Array<any>;
12
12
  getValueType(): "date" | "number";
13
13
  }
@@ -7,5 +7,5 @@ export declare class MatrixPlotly extends Matrix {
7
7
  [index: string]: any;
8
8
  }>, options?: Object, name?: string);
9
9
  protected destroyContent(container: HTMLElement): void;
10
- protected renderContent(container: HTMLElement): void;
10
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
11
11
  }
@@ -7,5 +7,5 @@ export declare class MatrixDropdownGroupedPlotly extends MatrixDropdownGrouped {
7
7
  [index: string]: any;
8
8
  }>, options?: Object, name?: string);
9
9
  protected destroyContent(container: HTMLElement): void;
10
- protected renderContent(container: HTMLElement): void;
10
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
11
11
  }
@@ -2,6 +2,6 @@ import { SelectBasePlotly } from "./selectBase";
2
2
  export declare class RankingPlotly extends SelectBasePlotly {
3
3
  getQuestionResults(): any[];
4
4
  getEmptyData(): any;
5
- getCalculatedValues(): any[];
5
+ protected getCalculatedValuesCore(): Array<any>;
6
6
  applyResultToPlotlyData(result: any[], plotlyData: any, choices: any): void;
7
7
  }
@@ -5,7 +5,7 @@ export declare class PlotlyGaugeAdapter {
5
5
  private _chart;
6
6
  constructor(model: GaugePlotly);
7
7
  get chart(): Promise<Plotly.PlotlyHTMLElement>;
8
- create(chartNode: HTMLElement): any;
8
+ create(chartNode: HTMLElement): Promise<any>;
9
9
  destroy(node: HTMLElement): void;
10
10
  }
11
11
  export declare class GaugePlotly extends NumberModel {
@@ -16,5 +16,5 @@ export declare class GaugePlotly extends NumberModel {
16
16
  [index: string]: any;
17
17
  }>, options?: Object, name?: string);
18
18
  protected destroyContent(container: HTMLElement): void;
19
- protected renderContent(container: HTMLElement): void;
19
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
20
20
  }
@@ -6,7 +6,7 @@ export declare class PlotlyChartAdapter {
6
6
  constructor(model: SelectBase);
7
7
  protected patchConfigParameters(chartNode: object, traces: Array<object>, layout: object, config: object): void;
8
8
  get chart(): Promise<Plotly.PlotlyHTMLElement>;
9
- create(chartNode: HTMLElement): any;
9
+ create(chartNode: HTMLElement): Promise<any>;
10
10
  destroy(node: HTMLElement): void;
11
11
  }
12
12
  export declare class SelectBasePlotly extends SelectBase {
@@ -19,6 +19,6 @@ export declare class SelectBasePlotly extends SelectBase {
19
19
  [index: string]: any;
20
20
  }, name?: string);
21
21
  protected destroyContent(container: HTMLElement): void;
22
- protected renderContent(container: HTMLElement): void;
23
- getCalculatedValues(): any[];
22
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
23
+ protected getCalculatedValuesCore(): Array<any>;
24
24
  }
@@ -1,5 +1,5 @@
1
1
  import { Event } from "survey-core";
2
- import { SelectBase } from "../selectBase";
2
+ import { IAnswersData, SelectBase } from "../selectBase";
3
3
  import { VisualizerBase } from "../visualizerBase";
4
4
  export interface PlotlyOptions {
5
5
  traces: Array<any>;
@@ -18,12 +18,12 @@ export declare class PlotlySetup {
18
18
  */
19
19
  static onPlotCreating: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
20
20
  static setups: {
21
- [type: string]: (model: SelectBase) => PlotlyOptions;
21
+ [type: string]: (model: SelectBase, answersData: IAnswersData) => PlotlyOptions;
22
22
  };
23
- static setup(charType: string, model: SelectBase): PlotlyOptions;
23
+ static setup(charType: string, model: SelectBase, answersData: IAnswersData): PlotlyOptions;
24
24
  static getTruncatedLabel: (label: string, labelTruncateLength: number) => string;
25
- static setupPie(model: SelectBase): PlotlyOptions;
26
- static setupBar(model: SelectBase): PlotlyOptions;
27
- static setupVBar(model: SelectBase): PlotlyOptions;
28
- static setupScatter(model: SelectBase): PlotlyOptions;
25
+ static setupPie(model: SelectBase, answersData: IAnswersData): PlotlyOptions;
26
+ static setupBar(model: SelectBase, answersData: IAnswersData): PlotlyOptions;
27
+ static setupVBar(model: SelectBase, answersData: IAnswersData): PlotlyOptions;
28
+ static setupScatter(model: SelectBase, answersData: IAnswersData): PlotlyOptions;
29
29
  }
@@ -94,7 +94,7 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
94
94
  valuesSource(): Array<ItemValue>;
95
95
  getValues(): Array<any>;
96
96
  getLabels(): Array<string>;
97
- getPercentages(): Array<Array<number>>;
97
+ getPercentages(data: Array<Array<number>>): Array<Array<number>>;
98
98
  protected answersDataReady(answersData: IAnswersData): any;
99
99
  /**
100
100
  * Fires when answer data has been combined before they passed to draw graph.
@@ -105,7 +105,8 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
105
105
  /**
106
106
  * Returns object with all infotmation for data visualization: datasets, labels, colors, additional texts (percentage).
107
107
  */
108
- getAnswersData(): IAnswersData;
108
+ getAnswersData(): Promise<IAnswersData>;
109
+ convertFromExternalData(externalCalculatedData: any): any[];
109
110
  protected transpose(data: Array<Array<number>>): Array<Array<number>>;
110
111
  private static _stateProperties;
111
112
  getState(): any;
@@ -3,7 +3,7 @@ import { VisualizerBase } from "./visualizerBase";
3
3
  export declare class TextTableAdapter {
4
4
  private model;
5
5
  constructor(model: Text);
6
- create(container: HTMLElement): void;
6
+ create(container: HTMLElement): Promise<void>;
7
7
  destroy(node: HTMLElement): void;
8
8
  }
9
9
  export declare class Text extends VisualizerBase {
@@ -11,8 +11,8 @@ export declare class Text extends VisualizerBase {
11
11
  constructor(question: Question, data: Array<{
12
12
  [index: string]: any;
13
13
  }>, options?: Object, name?: string);
14
- getCalculatedValues(): any;
14
+ protected getCalculatedValuesCore(): any;
15
15
  protected destroyContent(container: HTMLElement): void;
16
- protected renderContent(container: HTMLElement): void;
16
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
17
17
  destroy(): void;
18
18
  }
@@ -18,6 +18,7 @@ export declare var options: {
18
18
  };
19
19
  export declare function allowDomRendering(): boolean;
20
20
  export declare function createCommercialLicenseLink(): HTMLElement;
21
+ export declare function createLoadingIndicator(): HTMLElement;
21
22
  export declare class DataHelper {
22
23
  static zipArrays(...arrays: any[]): any[][];
23
24
  static unzipArrays(zipArray: any[][]): any[][];
@@ -35,3 +36,4 @@ export declare function createImagesContainer(links: Array<{
35
36
  name: string;
36
37
  content: any;
37
38
  }>): HTMLElement;
39
+ export declare function toPrecision(value: number, precision?: number): number;
@@ -1,6 +1,14 @@
1
1
  import { Question } from "survey-core";
2
- import { IDataInfo, DataProvider } from "./dataProvider";
2
+ import { DataProvider, GetDataFn } from "./dataProvider";
3
3
  import { Event } from "survey-core";
4
+ export interface IDataInfo {
5
+ name: string;
6
+ dataNames: Array<string>;
7
+ getValues(): Array<any>;
8
+ getLabels(): Array<string>;
9
+ getSeriesValues(): Array<string>;
10
+ getSeriesLabels(): Array<string>;
11
+ }
4
12
  /**
5
13
  * A base object for all visualizers. Use it to implement a custom visualizer.
6
14
  *
@@ -37,6 +45,7 @@ export declare class VisualizerBase implements IDataInfo {
37
45
  private _showToolbar;
38
46
  private _footerVisualizer;
39
47
  private _dataProvider;
48
+ private _getDataCore;
40
49
  labelTruncateLength: number;
41
50
  protected renderResult: HTMLElement;
42
51
  protected toolbarContainer: HTMLElement;
@@ -99,7 +108,7 @@ export declare class VisualizerBase implements IDataInfo {
99
108
  };
100
109
  constructor(question: Question, data: Array<{
101
110
  [index: string]: any;
102
- }>, options?: {
111
+ }> | GetDataFn, options?: {
103
112
  [index: string]: any;
104
113
  }, _type?: string);
105
114
  protected get questionOptions(): any;
@@ -107,7 +116,8 @@ export declare class VisualizerBase implements IDataInfo {
107
116
  /**
108
117
  * Returns the identifier of a visualized question.
109
118
  */
110
- get name(): string | Array<string>;
119
+ get name(): string;
120
+ get dataNames(): Array<string>;
111
121
  /**
112
122
  * Indicates whether the visualizer displays a header. This property is `true` when a visualized question has a correct answer.
113
123
  * @see hasFooter
@@ -192,17 +202,13 @@ export declare class VisualizerBase implements IDataInfo {
192
202
  /**
193
203
  * Obsolete. Use [`surveyData`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel#surveyData) instead.
194
204
  */
195
- protected get data(): {
196
- [index: string]: any;
197
- }[];
205
+ protected get data(): any[];
198
206
  /**
199
207
  * Returns an array of survey results used to calculate values for visualization. If a user applies a filter, the array is also filtered.
200
208
  *
201
209
  * To get an array of calculated and visualized values, call the [`getCalculatedValues()`](https://surveyjs.io/dashboard/documentation/api-reference/visualizerbase#getCalculatedValues) method.
202
210
  */
203
- protected get surveyData(): {
204
- [index: string]: any;
205
- }[];
211
+ protected get surveyData(): any[];
206
212
  protected get dataProvider(): DataProvider;
207
213
  /**
208
214
  * Updates visualized data.
@@ -231,6 +237,7 @@ export declare class VisualizerBase implements IDataInfo {
231
237
  protected destroyHeader(container: HTMLElement): void;
232
238
  protected destroyContent(container: HTMLElement): void;
233
239
  protected renderHeader(container: HTMLElement): void;
240
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
234
241
  protected renderContent(container: HTMLElement): void;
235
242
  protected destroyFooter(container: HTMLElement): void;
236
243
  protected renderFooter(container: HTMLElement): void;
@@ -264,12 +271,17 @@ export declare class VisualizerBase implements IDataInfo {
264
271
  * Obsolete. Use [`getCalculatedValues()`](https://surveyjs.io/dashboard/documentation/api-reference/visualizationpanel#getCalculatedValues) instead.
265
272
  */
266
273
  getData(): any;
274
+ private _calculationsCache;
275
+ protected getCalculatedValuesCore(): Array<any>;
276
+ protected loadingData: boolean;
277
+ renderLoadingIndicator(contentContainer: HTMLElement): void;
278
+ convertFromExternalData(externalCalculatedData: any): any[];
267
279
  /**
268
280
  * Returns an array of calculated and visualized values. If a user applies a filter, the array is also filtered.
269
281
  *
270
282
  * To get an array of source survey results, use the [`surveyData`](https://surveyjs.io/dashboard/documentation/api-reference/visualizerbase#surveyData) property.
271
283
  */
272
- getCalculatedValues(): any;
284
+ getCalculatedValues(): Promise<Array<Object>>;
273
285
  protected _settingState: boolean;
274
286
  /**
275
287
  * Returns an object with properties that describe a current visualizer state. The properties are different for each individual visualizer.
@@ -299,3 +311,4 @@ export declare class VisualizerBase implements IDataInfo {
299
311
  set locale(newLocale: string);
300
312
  protected setLocale(newLocale: string): void;
301
313
  }
314
+ export declare function defaultStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo): Array<any>;
@@ -11,7 +11,7 @@ export declare class WordCloudAdapter {
11
11
  constructor(model: WordCloud);
12
12
  get wordcloud(): any;
13
13
  private createWordCloud2;
14
- create(element: HTMLElement): any;
14
+ create(element: HTMLElement): Promise<any>;
15
15
  destroy(node: HTMLElement): void;
16
16
  }
17
17
  export declare class WordCloud extends VisualizerBase {
@@ -19,8 +19,9 @@ export declare class WordCloud extends VisualizerBase {
19
19
  constructor(question: Question, data: Array<{
20
20
  [index: string]: any;
21
21
  }>, options?: Object, name?: string);
22
- getCalculatedValues(): any;
22
+ convertFromExternalData(externalCalculatedData: any): any[];
23
+ protected getCalculatedValuesCore(): Array<any>;
23
24
  protected destroyContent(container: HTMLElement): void;
24
- protected renderContent(container: HTMLElement): void;
25
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
25
26
  destroy(): void;
26
27
  }