survey-analytics 2.5.16 → 3.0.0-beta.1
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/fesm/shared.mjs +759 -3180
- package/fesm/shared.mjs.map +1 -1
- package/fesm/shared2.mjs +10561 -8296
- package/fesm/shared2.mjs.map +1 -1
- package/fesm/shared3.mjs +4844 -0
- package/fesm/shared3.mjs.map +1 -0
- package/fesm/shared4.mjs +42 -0
- package/fesm/shared4.mjs.map +1 -0
- package/fesm/survey.analytics.apexcharts.mjs +1082 -0
- package/fesm/survey.analytics.apexcharts.mjs.map +1 -0
- package/fesm/survey.analytics.core.mjs +3 -3
- package/fesm/survey.analytics.mjs +7 -755
- package/fesm/survey.analytics.mjs.map +1 -1
- package/fesm/survey.analytics.mongo.mjs +1 -1
- package/fesm/survey.analytics.plotly.mjs +13 -0
- package/fesm/survey.analytics.plotly.mjs.map +1 -0
- package/fesm/survey.analytics.tabulator.mjs +341 -193
- package/fesm/survey.analytics.tabulator.mjs.map +1 -1
- package/fesm/themes/index.mjs +1942 -0
- package/fesm/themes/index.mjs.map +1 -0
- package/package.json +39 -10
- package/survey-analytics-plotly.types/alternativeVizualizersWrapper.d.ts +73 -0
- package/survey-analytics-plotly.types/analytics-localization/arabic.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/dutch.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/english.d.ts +142 -0
- package/survey-analytics-plotly.types/analytics-localization/farsi.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/finnish.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/french.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/german.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/italian.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/japanese.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/norwegian.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/polish.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/portuguese.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/russian.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/spanish.d.ts +100 -0
- package/survey-analytics-plotly.types/analytics-localization/swedish.d.ts +100 -0
- package/survey-analytics-plotly.types/axisDescription.d.ts +6 -0
- package/survey-analytics-plotly.types/boolean.d.ts +15 -0
- package/survey-analytics-plotly.types/card.d.ts +29 -0
- package/survey-analytics-plotly.types/chartConfig.d.ts +9 -0
- package/survey-analytics-plotly.types/config.d.ts +35 -0
- package/survey-analytics-plotly.types/dashboard.d.ts +51 -0
- package/survey-analytics-plotly.types/dataProvider.d.ts +69 -0
- package/survey-analytics-plotly.types/entries/plotly.d.ts +2 -0
- package/survey-analytics-plotly.types/entries/summary.core.d.ts +46 -0
- package/survey-analytics-plotly.types/filterInfo.d.ts +11 -0
- package/survey-analytics-plotly.types/histogram.d.ts +102 -0
- package/{survey-analytics.types/layoutEngine.d.ts → survey-analytics-plotly.types/layout-engine.d.ts} +0 -12
- package/survey-analytics-plotly.types/localizationManager.d.ts +164 -0
- package/survey-analytics-plotly.types/matrix.d.ts +17 -0
- package/survey-analytics-plotly.types/matrixDropdownGrouped.d.ts +15 -0
- package/survey-analytics-plotly.types/muuri-layout-engine.d.ts +13 -0
- package/survey-analytics-plotly.types/nps.d.ts +37 -0
- package/survey-analytics-plotly.types/number.d.ts +27 -0
- package/survey-analytics-plotly.types/pivot.d.ts +71 -0
- package/{survey-analytics.types → survey-analytics-plotly.types}/plotly/chart-adapter.d.ts +11 -2
- package/survey-analytics-plotly.types/plotly/setup.d.ts +150 -0
- package/survey-analytics-plotly.types/ranking.d.ts +12 -0
- package/survey-analytics-plotly.types/selectBase.d.ts +117 -0
- package/survey-analytics-plotly.types/sideBarItemCreators.d.ts +7 -0
- package/survey-analytics-plotly.types/statisticCalculators.d.ts +9 -0
- package/survey-analytics-plotly.types/statistics-table.d.ts +28 -0
- package/survey-analytics-plotly.types/svgbundle.d.ts +2 -0
- package/survey-analytics-plotly.types/text.d.ts +25 -0
- package/survey-analytics-plotly.types/theme.d.ts +51 -0
- package/survey-analytics-plotly.types/themes/default-light.d.ts +965 -0
- package/survey-analytics-plotly.types/utils/calculationDateRanges.d.ts +35 -0
- package/survey-analytics-plotly.types/utils/dateRangeModel.d.ts +32 -0
- package/survey-analytics-plotly.types/utils/dateRangeWidget.d.ts +38 -0
- package/survey-analytics-plotly.types/utils/documentHelper.d.ts +28 -0
- package/survey-analytics-plotly.types/utils/dropdownActionWidget.d.ts +34 -0
- package/survey-analytics-plotly.types/utils/dropdownBase.d.ts +48 -0
- package/survey-analytics-plotly.types/utils/dropdownWidget.d.ts +46 -0
- package/survey-analytics-plotly.types/utils/editableSeriesListWidget.d.ts +34 -0
- package/survey-analytics-plotly.types/utils/elementVisibilityAction.d.ts +22 -0
- package/survey-analytics-plotly.types/utils/index.d.ts +25 -0
- package/survey-analytics-plotly.types/utils/sidebarWidget.d.ts +48 -0
- package/survey-analytics-plotly.types/utils/toggle.d.ts +17 -0
- package/survey-analytics-plotly.types/utils/utils.d.ts +9 -0
- package/survey-analytics-plotly.types/visualizationComposite.d.ts +8 -0
- package/survey-analytics-plotly.types/visualizationManager.d.ts +61 -0
- package/survey-analytics-plotly.types/visualizationMatrixDropdown.d.ts +23 -0
- package/survey-analytics-plotly.types/visualizationMatrixDynamic.d.ts +8 -0
- package/survey-analytics-plotly.types/visualizationPanel.d.ts +464 -0
- package/survey-analytics-plotly.types/visualizationPanelDynamic.d.ts +20 -0
- package/survey-analytics-plotly.types/visualizer-interfaces.d.ts +25 -0
- package/survey-analytics-plotly.types/visualizerBase.d.ts +435 -0
- package/survey-analytics-plotly.types/visualizerDescription.d.ts +4 -0
- package/survey-analytics-plotly.types/visualizerFactory.d.ts +41 -0
- package/survey-analytics-plotly.types/wordcloud/stopwords/dutch.d.ts +1 -0
- package/survey-analytics-plotly.types/wordcloud/stopwords/english.d.ts +1 -0
- package/survey-analytics-plotly.types/wordcloud/stopwords/index.d.ts +3 -0
- package/survey-analytics-plotly.types/wordcloud/stopwords/norwegian.d.ts +1 -0
- package/survey-analytics-plotly.types/wordcloud/stopwords/spanish.d.ts +1 -0
- package/survey-analytics-plotly.types/wordcloud/widget.d.ts +38 -0
- package/survey-analytics-plotly.types/wordcloud/wordcloud.d.ts +28 -0
- package/survey-analytics-tabulator.types/analytics-localization/english.d.ts +40 -0
- package/survey-analytics-tabulator.types/entries/tabulator.d.ts +2 -25
- package/survey-analytics-tabulator.types/entries/tabulator.fontless.d.ts +26 -0
- package/survey-analytics-tabulator.types/localizationManager.d.ts +40 -0
- package/survey-analytics-tabulator.types/tables/columnbuilder.d.ts +16 -16
- package/survey-analytics-tabulator.types/tables/columns.d.ts +18 -18
- package/survey-analytics-tabulator.types/tables/config.d.ts +2 -2
- package/survey-analytics-tabulator.types/tables/extensions/footerextensions.d.ts +1 -0
- package/survey-analytics-tabulator.types/tables/extensions/tableextensions.d.ts +2 -1
- package/survey-analytics-tabulator.types/tables/table-interfaces.d.ts +56 -0
- package/survey-analytics-tabulator.types/tables/table.d.ts +4 -48
- package/survey-analytics-tabulator.types/tables/tabulator.d.ts +9 -1
- package/survey-analytics-tabulator.types/theme.d.ts +51 -0
- package/survey-analytics-tabulator.types/themes/default-light.d.ts +965 -0
- package/survey-analytics-tabulator.types/utils/documentHelper.d.ts +28 -0
- package/survey-analytics-tabulator.types/utils/dropdownActionWidget.d.ts +34 -0
- package/survey-analytics-tabulator.types/utils/dropdownBase.d.ts +48 -0
- package/survey-analytics-tabulator.types/utils/index.d.ts +1 -15
- package/survey-analytics.types/alternativeVizualizersWrapper.d.ts +9 -4
- package/survey-analytics.types/analytics-localization/english.d.ts +40 -0
- package/survey-analytics.types/apexcharts/chart-adapter.d.ts +29 -0
- package/survey-analytics.types/apexcharts/index.d.ts +2 -0
- package/survey-analytics.types/apexcharts/setup.d.ts +200 -0
- package/survey-analytics.types/axisDescription.d.ts +6 -0
- package/survey-analytics.types/boolean.d.ts +1 -1
- package/survey-analytics.types/card.d.ts +29 -0
- package/survey-analytics.types/chartConfig.d.ts +9 -0
- package/survey-analytics.types/config.d.ts +1 -33
- package/survey-analytics.types/dashboard.d.ts +51 -0
- package/survey-analytics.types/dataProvider.d.ts +17 -0
- package/survey-analytics.types/entries/apexcharts.d.ts +2 -0
- package/survey-analytics.types/entries/apexcharts.fontless.d.ts +2 -0
- package/survey-analytics.types/entries/summary.core.d.ts +9 -1
- package/survey-analytics.types/histogram.d.ts +29 -13
- package/survey-analytics.types/layout-engine.d.ts +29 -0
- package/survey-analytics.types/localizationManager.d.ts +40 -0
- package/survey-analytics.types/matrix.d.ts +3 -2
- package/survey-analytics.types/matrixDropdownGrouped.d.ts +3 -2
- package/survey-analytics.types/muuri-layout-engine.d.ts +13 -0
- package/survey-analytics.types/nps.d.ts +5 -10
- package/survey-analytics.types/number.d.ts +8 -7
- package/survey-analytics.types/pivot.d.ts +42 -40
- package/survey-analytics.types/ranking.d.ts +3 -2
- package/survey-analytics.types/selectBase.d.ts +13 -15
- package/survey-analytics.types/sideBarItemCreators.d.ts +7 -0
- package/survey-analytics.types/statisticCalculators.d.ts +8 -13
- package/survey-analytics.types/statistics-table.d.ts +2 -2
- package/survey-analytics.types/text.d.ts +4 -3
- package/survey-analytics.types/theme.d.ts +51 -0
- package/survey-analytics.types/themes/default-light.d.ts +965 -0
- package/survey-analytics.types/utils/calculationDateRanges.d.ts +35 -0
- package/survey-analytics.types/utils/dateRangeModel.d.ts +32 -0
- package/survey-analytics.types/utils/dateRangeWidget.d.ts +38 -0
- package/survey-analytics.types/utils/documentHelper.d.ts +28 -0
- package/survey-analytics.types/utils/dropdownActionWidget.d.ts +34 -0
- package/survey-analytics.types/utils/dropdownBase.d.ts +48 -0
- package/survey-analytics.types/utils/dropdownWidget.d.ts +46 -0
- package/survey-analytics.types/utils/editableSeriesListWidget.d.ts +34 -0
- package/survey-analytics.types/utils/elementVisibilityAction.d.ts +22 -0
- package/survey-analytics.types/utils/index.d.ts +1 -15
- package/survey-analytics.types/utils/sidebarWidget.d.ts +48 -0
- package/survey-analytics.types/utils/toggle.d.ts +17 -0
- package/survey-analytics.types/utils/utils.d.ts +9 -0
- package/survey-analytics.types/visualizationComposite.d.ts +1 -1
- package/survey-analytics.types/visualizationManager.d.ts +6 -5
- package/survey-analytics.types/visualizationMatrixDropdown.d.ts +2 -1
- package/survey-analytics.types/visualizationMatrixDynamic.d.ts +1 -1
- package/survey-analytics.types/visualizationPanel.d.ts +20 -3
- package/survey-analytics.types/visualizationPanelDynamic.d.ts +4 -3
- package/survey-analytics.types/visualizer-interfaces.d.ts +25 -0
- package/survey-analytics.types/visualizerBase.d.ts +80 -12
- package/survey-analytics.types/visualizerDescription.d.ts +4 -0
- package/survey-analytics.types/visualizerFactory.d.ts +11 -2
- package/survey-analytics.types/wordcloud/wordcloud.d.ts +6 -4
- package/survey.analytics.core.css +1534 -122
- package/survey.analytics.core.css.map +1 -1
- package/survey.analytics.core.d.ts +1 -0
- package/survey.analytics.core.js +6118 -1229
- package/survey.analytics.core.js.map +1 -1
- package/survey.analytics.core.min.css +11 -6
- package/survey.analytics.core.min.js +1 -1
- package/survey.analytics.core.min.js.LICENSE.txt +1 -1
- package/survey.analytics.css +1900 -129
- package/survey.analytics.css.map +1 -1
- package/survey.analytics.d.ts +2 -2
- package/survey.analytics.fontless.css +2009 -0
- package/survey.analytics.fontless.css.map +1 -0
- package/survey.analytics.fontless.min.css +16 -0
- package/survey.analytics.js +9764 -4539
- package/survey.analytics.js.map +1 -1
- package/survey.analytics.min.css +13 -6
- package/survey.analytics.min.js +1 -1
- package/survey.analytics.min.js.LICENSE.txt +1 -1
- package/survey.analytics.mongo.d.ts +1 -0
- package/survey.analytics.mongo.js +2 -2
- package/survey.analytics.mongo.js.map +1 -1
- package/survey.analytics.mongo.min.js +1 -1
- package/survey.analytics.mongo.min.js.LICENSE.txt +1 -1
- package/survey.analytics.plotly.css +2094 -0
- package/survey.analytics.plotly.css.map +1 -0
- package/survey.analytics.plotly.d.ts +2 -0
- package/survey.analytics.plotly.fontless.css +1872 -0
- package/survey.analytics.plotly.fontless.css.map +1 -0
- package/survey.analytics.plotly.fontless.min.css +15 -0
- package/survey.analytics.plotly.js +24673 -0
- package/survey.analytics.plotly.js.map +1 -0
- package/survey.analytics.plotly.min.css +16 -0
- package/survey.analytics.plotly.min.js +2 -0
- package/survey.analytics.plotly.min.js.LICENSE.txt +22 -0
- package/survey.analytics.tabulator.css +1005 -132
- package/survey.analytics.tabulator.css.map +1 -1
- package/survey.analytics.tabulator.d.ts +1 -0
- package/survey.analytics.tabulator.fontless.css +1134 -0
- package/survey.analytics.tabulator.fontless.css.map +1 -0
- package/survey.analytics.tabulator.fontless.min.css +6 -0
- package/survey.analytics.tabulator.js +2719 -476
- package/survey.analytics.tabulator.js.map +1 -1
- package/survey.analytics.tabulator.min.css +3 -2
- package/survey.analytics.tabulator.min.js +1 -1
- package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +1032 -0
- package/themes/default-dark.js.map +1 -0
- package/themes/default-dark.min.js +2 -0
- package/themes/default-dark.min.js.LICENSE.txt +5 -0
- package/themes/default-light.js +1032 -0
- package/themes/default-light.js.map +1 -0
- package/themes/default-light.min.js +2 -0
- package/themes/default-light.min.js.LICENSE.txt +5 -0
- package/themes/index.js +2063 -0
- package/themes/index.js.map +1 -0
- package/themes/index.min.js +2 -0
- package/themes/index.min.js.LICENSE.txt +5 -0
- package/themes/themes/default-dark.d.ts +965 -0
- package/themes/themes/default-light.d.ts +965 -0
- package/themes/themes/index.d.ts +1934 -0
- package/themes/utils/helpers.d.ts +8 -0
- package/survey-analytics.types/plotly/setup.d.ts +0 -32
- /package/{survey-analytics.types/entries/summary.d.ts → survey-analytics-plotly.types/entries/plotly.fontless.d.ts} +0 -0
- /package/{survey-analytics.types → survey-analytics-plotly.types}/plotly/index.d.ts +0 -0
- /package/{survey-analytics.types → survey-analytics-plotly.types}/plotly/legacy.d.ts +0 -0
|
@@ -24,11 +24,25 @@ export declare class DataProvider {
|
|
|
24
24
|
protected filterValues: {
|
|
25
25
|
[index: string]: any;
|
|
26
26
|
};
|
|
27
|
+
protected systemFilterValues: {
|
|
28
|
+
[index: string]: any;
|
|
29
|
+
};
|
|
30
|
+
private convertFilterValuesToSummaryFilters;
|
|
27
31
|
constructor(_data?: Array<any> | GetDataFn);
|
|
28
32
|
get data(): Array<any>;
|
|
29
33
|
set data(data: Array<any> | GetDataFn);
|
|
30
34
|
get dataFn(): GetDataFn;
|
|
31
35
|
get filteredData(): Array<any>;
|
|
36
|
+
private setFilterCore;
|
|
37
|
+
private resetFilterCore;
|
|
38
|
+
/**
|
|
39
|
+
* Sets filter by question name and value.
|
|
40
|
+
*/
|
|
41
|
+
setSystemFilter(questionName: string, selectedValue: any): void;
|
|
42
|
+
/**
|
|
43
|
+
* Resets filter.
|
|
44
|
+
*/
|
|
45
|
+
resetSystemFilter(): void;
|
|
32
46
|
/**
|
|
33
47
|
* Sets filter by question name and value.
|
|
34
48
|
*/
|
|
@@ -47,6 +61,9 @@ export declare class DataProvider {
|
|
|
47
61
|
*/
|
|
48
62
|
onDataChanged: Event<(sender: DataProvider, options: any) => any, DataProvider, any>;
|
|
49
63
|
raiseDataChanged(questionName?: string): void;
|
|
64
|
+
getAllFilters(): SummaryFilter[];
|
|
50
65
|
getFilters(): SummaryFilter[];
|
|
51
66
|
fixDropdownData(dataNames: string[]): void;
|
|
67
|
+
getCount(): Promise<number>;
|
|
68
|
+
getFilterValues(): {};
|
|
52
69
|
}
|
|
@@ -17,6 +17,7 @@ export * from "../dataProvider";
|
|
|
17
17
|
export * from "../visualizerFactory";
|
|
18
18
|
export * from "../selectBase";
|
|
19
19
|
export * from "../matrix";
|
|
20
|
+
export * from "../matrixDropdownGrouped";
|
|
20
21
|
export * from "../boolean";
|
|
21
22
|
export * from "../histogram";
|
|
22
23
|
export * from "../number";
|
|
@@ -28,11 +29,18 @@ export * from "../visualizationMatrixDynamic";
|
|
|
28
29
|
export * from "../visualizationMatrixDropdown";
|
|
29
30
|
export * from "../alternativeVizualizersWrapper";
|
|
30
31
|
export * from "../visualizationComposite";
|
|
32
|
+
export * from "../dashboard";
|
|
31
33
|
export * from "../wordcloud/wordcloud";
|
|
32
34
|
export * from "../wordcloud/stopwords/index";
|
|
33
35
|
export * from "../text";
|
|
34
36
|
export * from "../statistics-table";
|
|
35
37
|
export * from "../nps";
|
|
38
|
+
export * from "../card";
|
|
36
39
|
export * from "../ranking";
|
|
37
40
|
export * from "../pivot";
|
|
38
|
-
export
|
|
41
|
+
export * from "../theme";
|
|
42
|
+
export { DocumentHelper } from "../utils/documentHelper";
|
|
43
|
+
export { createActionDropdown } from "../utils/dropdownActionWidget";
|
|
44
|
+
export { createDropdown } from "../utils/dropdownWidget";
|
|
45
|
+
export * from "../layout-engine";
|
|
46
|
+
export * from "../muuri-layout-engine";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ItemValue, Question } from "survey-core";
|
|
2
|
-
import {
|
|
2
|
+
import { SelectBase } from "./selectBase";
|
|
3
|
+
import { IAnswersData, ICalculationResult } from "./visualizerBase";
|
|
3
4
|
export declare type HistogramIntervalMode = "auto" | "custom" | "decades" | "years" | "quarters" | "months" | "days";
|
|
4
5
|
export interface IHistogramInterval {
|
|
5
6
|
start: number;
|
|
@@ -15,11 +16,19 @@ export declare const intervalCalculators: {
|
|
|
15
16
|
days: (min: number, max: number) => any[];
|
|
16
17
|
};
|
|
17
18
|
export declare class HistogramModel extends SelectBase {
|
|
18
|
-
protected valueType: "date" | "number";
|
|
19
|
-
|
|
19
|
+
protected valueType: "date" | "number" | "enum";
|
|
20
|
+
protected _cachedValues: Array<{
|
|
21
|
+
original: any;
|
|
22
|
+
continuous: number;
|
|
23
|
+
row: any;
|
|
24
|
+
}>;
|
|
20
25
|
private _continuousData;
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
protected _cachedIntervals: Array<{
|
|
27
|
+
start: number;
|
|
28
|
+
end: number;
|
|
29
|
+
label: string;
|
|
30
|
+
}>;
|
|
31
|
+
protected _intervalPrecision: number;
|
|
23
32
|
private showRunningTotalsBtn;
|
|
24
33
|
private showGroupedBtn;
|
|
25
34
|
private changeIntervalsModeSelector;
|
|
@@ -28,13 +37,14 @@ export declare class HistogramModel extends SelectBase {
|
|
|
28
37
|
static UseIntervalsFrom: number;
|
|
29
38
|
constructor(question: Question, data: Array<{
|
|
30
39
|
[index: string]: any;
|
|
31
|
-
}>, options?: Object,
|
|
40
|
+
}>, options?: Object, type?: string);
|
|
32
41
|
private updateIntervalsModeSelector;
|
|
33
42
|
private updateAggregateDataNameSelector;
|
|
34
|
-
|
|
43
|
+
getQuestionValueType(question: Question, defaultValue?: string): "enum" | "date" | "number";
|
|
44
|
+
protected reset(): void;
|
|
35
45
|
getContinuousValue(value: any): number;
|
|
36
46
|
getString(value: number): string;
|
|
37
|
-
|
|
47
|
+
protected toPrecision(value: number): number;
|
|
38
48
|
getSelectedItemByText(itemText: string): ItemValue;
|
|
39
49
|
/**
|
|
40
50
|
* Updates visualizer data.
|
|
@@ -55,7 +65,11 @@ export declare class HistogramModel extends SelectBase {
|
|
|
55
65
|
getValues(): Array<any>;
|
|
56
66
|
getLabels(): Array<string>;
|
|
57
67
|
get hasCustomIntervals(): boolean;
|
|
58
|
-
get intervals():
|
|
68
|
+
get intervals(): Array<{
|
|
69
|
+
start: number;
|
|
70
|
+
end: number;
|
|
71
|
+
label: string;
|
|
72
|
+
}>;
|
|
59
73
|
intervalModes: HistogramIntervalMode[];
|
|
60
74
|
private _intervalsMode;
|
|
61
75
|
get intervalsMode(): HistogramIntervalMode;
|
|
@@ -74,13 +88,15 @@ export declare class HistogramModel extends SelectBase {
|
|
|
74
88
|
get aggregateDataName(): string;
|
|
75
89
|
set aggregateDataName(val: string);
|
|
76
90
|
get possibleAggregateDataNames(): Array<string>;
|
|
77
|
-
convertFromExternalData(externalCalculatedData:
|
|
78
|
-
protected getCalculatedValuesCore():
|
|
79
|
-
getCalculatedValues(): Promise<
|
|
91
|
+
convertFromExternalData(externalCalculatedData: Array<number>): ICalculationResult;
|
|
92
|
+
protected getCalculatedValuesCore(): ICalculationResult;
|
|
93
|
+
getCalculatedValues(): Promise<ICalculationResult>;
|
|
80
94
|
private getGroupedDateAnswersData;
|
|
81
95
|
/**
|
|
82
96
|
* Returns object with all infotmation for data visualization: datasets, labels, colors, additional texts (percentage).
|
|
83
97
|
*/
|
|
84
98
|
getAnswersData(): Promise<IAnswersData>;
|
|
85
|
-
|
|
99
|
+
private static _histogramDefaultState;
|
|
100
|
+
getDefaultState(): any;
|
|
101
|
+
getValueType(): "date" | "number" | "enum";
|
|
86
102
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A base class used to implement custom layout engines or integrate third-party layout engines with SurveyJS Dashboard.
|
|
3
|
+
*/
|
|
4
|
+
export declare class LayoutEngine {
|
|
5
|
+
protected _allowed: boolean;
|
|
6
|
+
constructor(_allowed: boolean);
|
|
7
|
+
protected startCore(container: HTMLElement): void;
|
|
8
|
+
protected stopCore(): void;
|
|
9
|
+
protected updateCore(): void;
|
|
10
|
+
get allowed(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Enables the dynamic layout in a given HTML element.
|
|
13
|
+
*
|
|
14
|
+
* This method should arrange visualization items based on the available screen space and allow users to reorder them via drag and drop.
|
|
15
|
+
*/
|
|
16
|
+
start(container: HTMLElement): void;
|
|
17
|
+
/**
|
|
18
|
+
* Disables the dynamic layout.
|
|
19
|
+
*/
|
|
20
|
+
stop(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Updates the dynamic layout.
|
|
23
|
+
*/
|
|
24
|
+
update(): void;
|
|
25
|
+
add(elements: Array<HTMLElement>, options?: any): void;
|
|
26
|
+
remove(elements: Array<HTMLElement>, options?: any): void;
|
|
27
|
+
onMoveCallback: (order: Array<string>) => void;
|
|
28
|
+
destroy(): void;
|
|
29
|
+
}
|
|
@@ -19,8 +19,10 @@ export declare var surveyStrings: {
|
|
|
19
19
|
groupButton: string;
|
|
20
20
|
ungroupButton: string;
|
|
21
21
|
selectButton: string;
|
|
22
|
+
columnReorder: string;
|
|
22
23
|
hideColumn: string;
|
|
23
24
|
showColumn: string;
|
|
25
|
+
columns: string;
|
|
24
26
|
makePrivateColumn: string;
|
|
25
27
|
makePublicColumn: string;
|
|
26
28
|
moveToDetail: string;
|
|
@@ -29,10 +31,12 @@ export declare var surveyStrings: {
|
|
|
29
31
|
removeRows: string;
|
|
30
32
|
showLabel: string;
|
|
31
33
|
entriesLabel: string;
|
|
34
|
+
entriesOnPageLabel: string;
|
|
32
35
|
visualizer_text: string;
|
|
33
36
|
visualizer_wordcloud: string;
|
|
34
37
|
visualizer_histogram: string;
|
|
35
38
|
visualizer_number: string;
|
|
39
|
+
visualizer_average: string;
|
|
36
40
|
visualizer_choices: string;
|
|
37
41
|
visualizer_selectBase: string;
|
|
38
42
|
visualizer_matrix: string;
|
|
@@ -46,6 +50,9 @@ export declare var surveyStrings: {
|
|
|
46
50
|
chartType_bullet: string;
|
|
47
51
|
chartType_line: string;
|
|
48
52
|
chartType_radar: string;
|
|
53
|
+
chartType_histogram: string;
|
|
54
|
+
chartType_vhistogram: string;
|
|
55
|
+
chartType_stackedhistogram: string;
|
|
49
56
|
hideButton: string;
|
|
50
57
|
makePrivateButton: string;
|
|
51
58
|
makePublicButton: string;
|
|
@@ -55,6 +62,9 @@ export declare var surveyStrings: {
|
|
|
55
62
|
changeLocale: string;
|
|
56
63
|
clearButton: string;
|
|
57
64
|
addElement: string;
|
|
65
|
+
allQuestions: string;
|
|
66
|
+
selectAll: string;
|
|
67
|
+
clearSelection: string;
|
|
58
68
|
defaultOrder: string;
|
|
59
69
|
ascOrder: string;
|
|
60
70
|
descOrder: string;
|
|
@@ -63,10 +73,30 @@ export declare var surveyStrings: {
|
|
|
63
73
|
otherCommentTitle: string;
|
|
64
74
|
showPercentages: string;
|
|
65
75
|
hidePercentages: string;
|
|
76
|
+
exportAs: string;
|
|
66
77
|
pdfDownloadCaption: string;
|
|
67
78
|
xlsxDownloadCaption: string;
|
|
68
79
|
csvDownloadCaption: string;
|
|
69
80
|
saveDiagramAsPNG: string;
|
|
81
|
+
responsesText: string;
|
|
82
|
+
noData: string;
|
|
83
|
+
selectDateRange: string;
|
|
84
|
+
includeToday: string;
|
|
85
|
+
reportingPeriodCustom: string;
|
|
86
|
+
reportingPeriodLast7days: string;
|
|
87
|
+
reportingPeriodLast14days: string;
|
|
88
|
+
reportingPeriodLast28days: string;
|
|
89
|
+
reportingPeriodLast30days: string;
|
|
90
|
+
reportingPeriodLastWeekMon: string;
|
|
91
|
+
reportingPeriodLastWeekSun: string;
|
|
92
|
+
reportingPeriodLastMonth: string;
|
|
93
|
+
reportingPeriodLastQuarter: string;
|
|
94
|
+
reportingPeriodLastYear: string;
|
|
95
|
+
reportingPeriodWtdSun: string;
|
|
96
|
+
reportingPeriodWtdMon: string;
|
|
97
|
+
reportingPeriodMtd: string;
|
|
98
|
+
reportingPeriodQtd: string;
|
|
99
|
+
reportingPeriodYtd: string;
|
|
70
100
|
hideEmptyAnswers: string;
|
|
71
101
|
showEmptyAnswers: string;
|
|
72
102
|
"topNValueText-1": string;
|
|
@@ -97,6 +127,7 @@ export declare var surveyStrings: {
|
|
|
97
127
|
axisYSelectorTitle: string;
|
|
98
128
|
axisXAlternativeSelectorTitle: string;
|
|
99
129
|
axisYAlternativeSelectorTitle: string;
|
|
130
|
+
secondYAxisToggleTitle: string;
|
|
100
131
|
notSelected: string;
|
|
101
132
|
intervalMode_default: string;
|
|
102
133
|
intervalMode_decades: string;
|
|
@@ -116,6 +147,15 @@ export declare var surveyStrings: {
|
|
|
116
147
|
groupedYearsAxisTitle: string;
|
|
117
148
|
license: string;
|
|
118
149
|
license2: string;
|
|
150
|
+
seriesListLegendSeries: string;
|
|
151
|
+
seriesListValuesLabel: string;
|
|
152
|
+
seriesListRemove: string;
|
|
153
|
+
seriesListAdd: string;
|
|
154
|
+
seriesListMoveToSecondAxis: string;
|
|
155
|
+
seriesListMoveToFirstAxis: string;
|
|
156
|
+
aggregationCount: string;
|
|
157
|
+
aggregationSum: string;
|
|
158
|
+
aggregationAverage: string;
|
|
119
159
|
};
|
|
120
160
|
export declare function setupLocale(localeConfig: {
|
|
121
161
|
localeCode: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ItemValue, QuestionMatrixModel, Question } from "survey-core";
|
|
2
|
-
import {
|
|
2
|
+
import { SelectBase } from "./selectBase";
|
|
3
|
+
import { IAnswersData } from "./visualizerBase";
|
|
3
4
|
export declare class Matrix extends SelectBase {
|
|
4
5
|
constructor(question: Question, data: Array<{
|
|
5
6
|
[index: string]: any;
|
|
6
|
-
}>, options?: Object,
|
|
7
|
+
}>, options?: Object, type?: string);
|
|
7
8
|
protected get matrixQuestion(): QuestionMatrixModel;
|
|
8
9
|
protected isSupportMissingAnswers(): boolean;
|
|
9
10
|
getSeriesValues(): Array<string>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ItemValue, QuestionMatrixDropdownModel, Question } from "survey-core";
|
|
2
2
|
import { SelectBase } from "./selectBase";
|
|
3
|
+
import { ICalculationResult } from "./visualizerBase";
|
|
3
4
|
export declare class MatrixDropdownGrouped extends SelectBase {
|
|
4
5
|
constructor(question: Question, data: Array<{
|
|
5
6
|
[index: string]: any;
|
|
6
|
-
}>, options?: Object,
|
|
7
|
+
}>, options?: Object, type?: string);
|
|
7
8
|
protected get matrixQuestion(): QuestionMatrixDropdownModel;
|
|
8
9
|
get dataNames(): Array<string>;
|
|
9
10
|
getSeriesValues(): Array<string>;
|
|
10
11
|
getSeriesLabels(): Array<string>;
|
|
11
12
|
valuesSource(): Array<ItemValue>;
|
|
12
13
|
protected isSupportMissingAnswers(): boolean;
|
|
13
|
-
protected getCalculatedValuesCore():
|
|
14
|
+
protected getCalculatedValuesCore(): ICalculationResult;
|
|
14
15
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LayoutEngine } from "./layout-engine";
|
|
2
|
+
export declare class MuuriLayoutEngine extends LayoutEngine {
|
|
3
|
+
private _selector;
|
|
4
|
+
private dragEnabled;
|
|
5
|
+
private _muuri;
|
|
6
|
+
private _layoutingTimer;
|
|
7
|
+
constructor(allowed: boolean, _selector: string, dragEnabled?: boolean);
|
|
8
|
+
protected startCore(container: HTMLElement): void;
|
|
9
|
+
protected stopCore(): void;
|
|
10
|
+
protected updateCore(): void;
|
|
11
|
+
add(elements: Array<HTMLElement>, options?: any): void;
|
|
12
|
+
remove(elements: Array<HTMLElement>, options?: any): void;
|
|
13
|
+
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { Question } from "survey-core";
|
|
2
|
-
import { VisualizerBase } from "./visualizerBase";
|
|
2
|
+
import { ICalculationResult, VisualizerBase } from "./visualizerBase";
|
|
3
3
|
import "./nps.scss";
|
|
4
4
|
export declare class NpsVisualizerWidget {
|
|
5
5
|
private _model;
|
|
6
|
-
private _data;
|
|
7
6
|
private _renderedTarget;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
passive: number;
|
|
11
|
-
promoters: number;
|
|
12
|
-
total: number;
|
|
13
|
-
});
|
|
7
|
+
private _data;
|
|
8
|
+
constructor(_model: NpsVisualizer, data: ICalculationResult);
|
|
14
9
|
private renderScorePart;
|
|
15
10
|
render(target: HTMLDivElement): void;
|
|
16
11
|
get npsScore(): number;
|
|
@@ -34,8 +29,8 @@ export declare class NpsVisualizer extends VisualizerBase {
|
|
|
34
29
|
private _npsAdapter;
|
|
35
30
|
constructor(question: Question, data: Array<{
|
|
36
31
|
[index: string]: any;
|
|
37
|
-
}>, options?: Object,
|
|
38
|
-
protected getCalculatedValuesCore():
|
|
32
|
+
}>, options?: Object, type?: string);
|
|
33
|
+
protected getCalculatedValuesCore(): ICalculationResult;
|
|
39
34
|
protected destroyContent(container: HTMLElement): void;
|
|
40
35
|
protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
|
|
41
36
|
destroy(): void;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Question } from "survey-core";
|
|
2
|
-
import { VisualizerBase } from "./visualizerBase";
|
|
2
|
+
import { ICalculationResult, VisualizerBase } from "./visualizerBase";
|
|
3
3
|
export declare class NumberModel extends VisualizerBase {
|
|
4
|
-
private
|
|
5
|
-
private _resultMin;
|
|
6
|
-
private _resultMax;
|
|
4
|
+
private _statistics;
|
|
7
5
|
static stepsCount: number;
|
|
8
6
|
static generateTextsCallback: (question: Question, maxValue: number, minValue: number, stepsCount: number, texts: string[]) => string[];
|
|
9
7
|
protected chartTypes: Array<string>;
|
|
10
8
|
chartType: String;
|
|
11
9
|
static showAsPercentage: boolean;
|
|
10
|
+
displayValueName: string;
|
|
11
|
+
private initChartTypes;
|
|
12
12
|
constructor(question: Question, data: Array<{
|
|
13
13
|
[index: string]: any;
|
|
14
14
|
}>, options?: {
|
|
15
15
|
[index: string]: any;
|
|
16
|
-
},
|
|
16
|
+
}, type?: string);
|
|
17
17
|
protected onDataChanged(): void;
|
|
18
18
|
protected onChartTypeChanged(): void;
|
|
19
19
|
protected setChartType(chartType: string): void;
|
|
@@ -21,6 +21,7 @@ export declare class NumberModel extends VisualizerBase {
|
|
|
21
21
|
generateText(maxValue: number, minValue: number, stepsCount: number): string[];
|
|
22
22
|
generateValues(maxValue: number, stepsCount: number): number[];
|
|
23
23
|
generateColors(maxValue: number, minValue: number, stepsCount: number): string[];
|
|
24
|
-
convertFromExternalData(externalCalculatedData: any):
|
|
25
|
-
protected getCalculatedValuesCore():
|
|
24
|
+
convertFromExternalData(externalCalculatedData: any): ICalculationResult;
|
|
25
|
+
protected getCalculatedValuesCore(): ICalculationResult;
|
|
26
|
+
getValues(): Array<any>;
|
|
26
27
|
}
|
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Question } from "survey-core";
|
|
2
|
+
import { ICalculationResult, IVisualizerOptions } from "./visualizerBase";
|
|
3
|
+
import { HistogramModel } from "./histogram";
|
|
4
|
+
import { EditableSeriesListWidget } from "./utils/editableSeriesListWidget";
|
|
5
|
+
import { IAxisDescription } from "./axisDescription";
|
|
6
|
+
export interface IPivotChartVisualizerOptions extends IVisualizerOptions {
|
|
7
|
+
questions?: Question[] | string[];
|
|
8
|
+
categoryField?: Question | string;
|
|
9
|
+
seriesFields?: Question[] | string[];
|
|
10
|
+
maxSeriesCount?: number;
|
|
11
|
+
useSecondaryYAxis?: boolean;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare class PivotModel extends HistogramModel {
|
|
15
|
+
questions: Array<Question>;
|
|
5
16
|
private isRoot;
|
|
6
|
-
|
|
7
|
-
private _cachedValues;
|
|
8
|
-
private _continuousData;
|
|
9
|
-
private _cachedIntervals;
|
|
10
|
-
private _intervalPrecision;
|
|
17
|
+
private _pivotContinuousData;
|
|
11
18
|
private axisXSelector;
|
|
12
19
|
axisXQuestionName: string;
|
|
13
20
|
private axisYSelectors;
|
|
14
|
-
|
|
21
|
+
primaryYAxes: Array<IAxisDescription>;
|
|
22
|
+
primaryYAxesSeriesListWidget: EditableSeriesListWidget;
|
|
23
|
+
secondaryYAxes: Array<IAxisDescription>;
|
|
24
|
+
secondaryYAxesSeriesListWidget: EditableSeriesListWidget;
|
|
25
|
+
private _useSecondaryYAxis;
|
|
26
|
+
private _savedSecondaryYAxes;
|
|
15
27
|
private questionsY;
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
private _questionDefinition;
|
|
29
|
+
private _aggregations;
|
|
30
|
+
private getQuestionSeriesLabels;
|
|
31
|
+
private getChartAxisSetting;
|
|
32
|
+
private registerSideBarItems;
|
|
18
33
|
constructor(questions: Array<Question>, data: Array<{
|
|
19
34
|
[index: string]: any;
|
|
20
|
-
}>, options?:
|
|
21
|
-
private
|
|
35
|
+
}>, options?: IPivotChartVisualizerOptions, isRoot?: boolean, type?: string);
|
|
36
|
+
private moveToolbarItemsToSidebar;
|
|
37
|
+
get useSecondaryYAxis(): boolean;
|
|
38
|
+
set useSecondaryYAxis(newValue: boolean);
|
|
39
|
+
get yAxes(): Array<IAxisDescription>;
|
|
40
|
+
getYAxisInfo(): {}[];
|
|
41
|
+
protected getName(): string;
|
|
42
|
+
protected getTitle(question: Question): string;
|
|
22
43
|
setAxisQuestions(...axisQuestionNames: string[]): void;
|
|
23
|
-
onAxisYSelectorChanged(index: number, value: any): void;
|
|
24
|
-
protected updateQuestionsSelection(): void;
|
|
25
|
-
private createAxisYSelector;
|
|
26
44
|
protected setChartType(chartType: string): void;
|
|
27
45
|
private isXYChart;
|
|
28
|
-
|
|
46
|
+
private movePrimaryItemToSecondary;
|
|
47
|
+
private moveSecondaryItemToPrimary;
|
|
29
48
|
private setupPivot;
|
|
30
|
-
private reset;
|
|
31
|
-
getContinuousValue(value: any): number;
|
|
32
|
-
getString(value: number): string;
|
|
33
|
-
private toPrecision;
|
|
34
|
-
getSelectedItemByText(itemText: string): ItemValue;
|
|
35
|
-
/**
|
|
36
|
-
* Updates visualizer data.
|
|
37
|
-
*/
|
|
38
|
-
updateData(data: Array<{
|
|
39
|
-
[index: string]: any;
|
|
40
|
-
}>): void;
|
|
41
|
-
protected onDataChanged(): void;
|
|
42
49
|
protected getContinuousValues(): {
|
|
43
50
|
original: any;
|
|
44
51
|
continuous: number;
|
|
45
52
|
row: any;
|
|
46
53
|
}[];
|
|
47
54
|
protected isSupportAnswersOrder(): boolean;
|
|
48
|
-
protected isSupportMissingAnswers(): boolean;
|
|
49
|
-
protected get needUseRateValues(): boolean;
|
|
50
55
|
getSeriesValues(): Array<string>;
|
|
51
56
|
getSeriesLabels(): Array<string>;
|
|
52
|
-
|
|
53
|
-
getLabels(): Array<string>;
|
|
54
|
-
get hasCustomIntervals(): boolean;
|
|
55
|
-
get intervals(): any;
|
|
56
|
-
convertFromExternalData(externalCalculatedData: any): any[];
|
|
57
|
+
convertFromExternalData(externalCalculatedData: any): ICalculationResult;
|
|
57
58
|
getSeriesValueIndexes(): {
|
|
58
59
|
[index: string]: number;
|
|
59
60
|
};
|
|
@@ -62,8 +63,9 @@ export declare class PivotModel extends SelectBase {
|
|
|
62
63
|
}, valueIndex: number, seriesValueIndexes: {
|
|
63
64
|
[index: string]: number;
|
|
64
65
|
}): void;
|
|
65
|
-
protected
|
|
66
|
-
|
|
67
|
-
protected isSupportSoftUpdateContent(): boolean;
|
|
66
|
+
protected calculateAggregation(dataRow: any, series: IAxisDescription, currentValue: number): number;
|
|
67
|
+
protected getCalculatedValuesCore(): ICalculationResult;
|
|
68
68
|
protected renderToolbar(container: HTMLElement): void;
|
|
69
|
+
render(targetElement: HTMLElement | string, isRoot?: boolean): void;
|
|
70
|
+
protected renderBanner(container: HTMLElement): void;
|
|
69
71
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { SelectBase } from "./selectBase";
|
|
2
2
|
import { QuestionRankingModel } from "survey-core";
|
|
3
|
+
import { ICalculationResult } from "./visualizerBase";
|
|
3
4
|
export declare class RankingModel extends SelectBase {
|
|
4
5
|
constructor(question: QuestionRankingModel, data: Array<{
|
|
5
6
|
[index: string]: any;
|
|
6
|
-
}>, options?: any,
|
|
7
|
+
}>, options?: any, type?: string);
|
|
7
8
|
getQuestionResults(): any[];
|
|
8
9
|
getEmptyData(): any;
|
|
9
|
-
protected getCalculatedValuesCore():
|
|
10
|
+
protected getCalculatedValuesCore(): ICalculationResult;
|
|
10
11
|
applyResultToPlotlyData(result: any[], plotlyData: any, choices: any): void;
|
|
11
12
|
}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import { Question, ItemValue, Event } from "survey-core";
|
|
2
|
-
import { VisualizerBase } from "./visualizerBase";
|
|
2
|
+
import { IAnswersData, ICalculationResult, VisualizerBase } from "./visualizerBase";
|
|
3
3
|
export interface IVisualizerWithSelection {
|
|
4
4
|
selection: ItemValue;
|
|
5
5
|
onDataItemSelected: (selectedValue: any, selectedText: string) => void;
|
|
6
6
|
setSelection(item: ItemValue): void;
|
|
7
7
|
}
|
|
8
|
-
export interface IAnswersData {
|
|
9
|
-
datasets: Array<Array<any>>;
|
|
10
|
-
labels: Array<string>;
|
|
11
|
-
colors: Array<string>;
|
|
12
|
-
texts: Array<Array<any>>;
|
|
13
|
-
seriesLabels: Array<string>;
|
|
14
|
-
labelsTitle?: string;
|
|
15
|
-
valuesTitle?: string;
|
|
16
|
-
}
|
|
17
8
|
export declare function hideEmptyAnswersInData(answersData: IAnswersData): IAnswersData;
|
|
18
9
|
export declare class SelectBase extends VisualizerBase implements IVisualizerWithSelection {
|
|
19
10
|
protected selectedItem: ItemValue;
|
|
@@ -30,12 +21,14 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
|
|
|
30
21
|
private _topN;
|
|
31
22
|
static topNValuesDefaults: number[];
|
|
32
23
|
topNValues: any[];
|
|
24
|
+
_legendPosition: "left" | "right" | "top" | "bottom";
|
|
33
25
|
protected _transposeData: boolean;
|
|
34
26
|
private _showMissingAnswers;
|
|
35
27
|
private missingAnswersBtn;
|
|
28
|
+
private initChartTypes;
|
|
36
29
|
constructor(question: Question, data: Array<{
|
|
37
30
|
[index: string]: any;
|
|
38
|
-
}>, options?: any,
|
|
31
|
+
}>, options?: any, type?: string);
|
|
39
32
|
protected chartTypes: string[];
|
|
40
33
|
protected _chartType: string;
|
|
41
34
|
/**
|
|
@@ -64,6 +57,7 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
|
|
|
64
57
|
get showOnlyPercentages(): boolean;
|
|
65
58
|
set showOnlyPercentages(val: boolean);
|
|
66
59
|
protected getShowPercentagesDefault(): boolean;
|
|
60
|
+
get percentagePrecision(): number;
|
|
67
61
|
/**
|
|
68
62
|
* Gets and sets whether chart should show values and percentages.
|
|
69
63
|
*/
|
|
@@ -93,7 +87,8 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
|
|
|
93
87
|
*/
|
|
94
88
|
get showMissingAnswers(): boolean;
|
|
95
89
|
set showMissingAnswers(value: boolean);
|
|
96
|
-
|
|
90
|
+
get legendPosition(): "left" | "right" | "top" | "bottom";
|
|
91
|
+
set legendPosition(value: "left" | "right" | "top" | "bottom");
|
|
97
92
|
onDataItemSelected: (selectedValue: any, selectedText: string) => void;
|
|
98
93
|
get showValuesInOriginalOrder(): boolean;
|
|
99
94
|
valuesSource(): Array<ItemValue>;
|
|
@@ -110,10 +105,13 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
|
|
|
110
105
|
* Returns object with all infotmation for data visualization: datasets, labels, colors, additional texts (percentage).
|
|
111
106
|
*/
|
|
112
107
|
getAnswersData(): Promise<IAnswersData>;
|
|
113
|
-
convertFromExternalData(externalCalculatedData: any):
|
|
108
|
+
convertFromExternalData(externalCalculatedData: any): ICalculationResult;
|
|
114
109
|
protected transpose(data: Array<Array<number>>): Array<Array<number>>;
|
|
115
|
-
private static
|
|
110
|
+
private static _selectBaseDefaultState;
|
|
111
|
+
getDefaultState(): any;
|
|
116
112
|
getState(): any;
|
|
117
|
-
|
|
113
|
+
protected setStateCore(state: any): void;
|
|
118
114
|
resetState(): void;
|
|
115
|
+
protected onThemeChanged(): void;
|
|
116
|
+
getYAxisInfo(): {}[];
|
|
119
117
|
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { IDataInfo } from "./visualizerBase";
|
|
2
|
-
export declare function defaultStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo):
|
|
3
|
-
export declare function histogramStatisticsCalculator(data: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
row: any;
|
|
7
|
-
}>;
|
|
8
|
-
}, intervals: Array<{
|
|
9
|
-
start: number;
|
|
10
|
-
end: number;
|
|
1
|
+
import { ICalculationResult, IDataInfo } from "./visualizerBase";
|
|
2
|
+
export declare function defaultStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo): ICalculationResult;
|
|
3
|
+
export declare function histogramStatisticsCalculator(data: any, intervals: Array<{
|
|
4
|
+
start: number | Date;
|
|
5
|
+
end: number | Date;
|
|
11
6
|
label: string;
|
|
12
|
-
}>, dataInfo: IDataInfo, aggregateDataNames?: any[]):
|
|
13
|
-
export declare function mathStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo):
|
|
14
|
-
export declare function getNestedDataRows(dataRow: any,
|
|
7
|
+
}>, dataInfo: IDataInfo, aggregateDataNames?: any[]): ICalculationResult;
|
|
8
|
+
export declare function mathStatisticsCalculator(data: Array<any>, dataInfo: IDataInfo): ICalculationResult;
|
|
9
|
+
export declare function getNestedDataRows(dataRow: any, dataPath: string): Array<any>;
|
|
@@ -12,7 +12,7 @@ export declare class StatisticsTable extends SelectBase {
|
|
|
12
12
|
private _statisticsTableAdapter;
|
|
13
13
|
constructor(question: Question, data: Array<{
|
|
14
14
|
[index: string]: any;
|
|
15
|
-
}>, options?: Object,
|
|
15
|
+
}>, options?: Object, type?: string);
|
|
16
16
|
protected destroyContent(container: HTMLElement): void;
|
|
17
17
|
protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
|
|
18
18
|
destroy(): void;
|
|
@@ -21,7 +21,7 @@ export declare class StatisticsTableBoolean extends BooleanModel {
|
|
|
21
21
|
private _statisticsTableAdapter;
|
|
22
22
|
constructor(question: Question, data: Array<{
|
|
23
23
|
[index: string]: any;
|
|
24
|
-
}>, options?: Object,
|
|
24
|
+
}>, options?: Object, type?: string);
|
|
25
25
|
protected destroyContent(container: HTMLElement): void;
|
|
26
26
|
protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
|
|
27
27
|
destroy(): void;
|