survey-analytics 1.12.52 → 1.12.53
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 +59 -1
- package/fesm/shared.mjs.map +1 -1
- package/fesm/shared2.mjs +166 -65
- package/fesm/shared2.mjs.map +1 -1
- package/fesm/survey.analytics.core.mjs +2 -2
- package/fesm/survey.analytics.mjs +12 -5
- package/fesm/survey.analytics.mjs.map +1 -1
- package/fesm/survey.analytics.tabulator.mjs +17 -4
- package/fesm/survey.analytics.tabulator.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-analytics-tabulator.types/analytics-localization/finnish.d.ts +2 -0
- package/survey-analytics-tabulator.types/analytics-localization/swedish.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/finnish.d.ts +2 -0
- package/survey-analytics.types/analytics-localization/swedish.d.ts +2 -0
- package/survey.analytics.core.css +1 -1
- package/survey.analytics.core.js +256 -77
- package/survey.analytics.core.js.map +1 -1
- package/survey.analytics.core.min.css +1 -1
- package/survey.analytics.core.min.js +1 -1
- package/survey.analytics.core.min.js.LICENSE.txt +1 -1
- package/survey.analytics.css +1 -1
- package/survey.analytics.datatables.css +1 -1
- package/survey.analytics.datatables.js +1 -1
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js.LICENSE.txt +1 -1
- package/survey.analytics.js +1 -1
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js.LICENSE.txt +1 -1
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +1 -1
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - SurveyJS Dashboard library v2.3.
|
|
2
|
+
* surveyjs - SurveyJS Dashboard library v2.3.6
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
export { D as DocumentHelper, l as localization, a as setupLocale, s as surveyStrings } from './shared.mjs';
|
|
8
|
-
export { A as AlternativeVisualizersWrapper, B as BooleanModel, D as DataProvider, H as HistogramModel, M as Matrix,
|
|
8
|
+
export { A as AlternativeVisualizersWrapper, B as BooleanModel, D as DataProvider, H as HistogramModel, M as Matrix, n as NpsAdapter, o as NpsVisualizer, m as NpsVisualizerWidget, N as NumberModel, p as PivotModel, P as PostponeHelper, R as RankingModel, S as SelectBase, k as StatisticsTable, j as StatisticsTableAdapter, l as StatisticsTableBoolean, i as Text, T as TextTableAdapter, b as VisualizationManager, f as VisualizationMatrixDropdown, e as VisualizationMatrixDynamic, c as VisualizationPanel, d as VisualizationPanelDynamic, a as VisualizerBase, V as VisualizerFactory, g as WordCloud, W as WordCloudAdapter, h as hideEmptyAnswersInData, t as textHelper } from './shared2.mjs';
|
|
9
9
|
import 'survey-core';
|
|
10
10
|
//# sourceMappingURL=survey.analytics.core.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - SurveyJS Dashboard library v2.3.
|
|
2
|
+
* surveyjs - SurveyJS Dashboard library v2.3.6
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import { Event, ItemValue } from 'survey-core';
|
|
8
8
|
import { l as localization, b as DataHelper } from './shared.mjs';
|
|
9
9
|
export { D as DocumentHelper, a as setupLocale, s as surveyStrings } from './shared.mjs';
|
|
10
|
-
import { N as NumberModel, b as VisualizationManager, S as SelectBase,
|
|
11
|
-
export { A as AlternativeVisualizersWrapper, D as DataProvider,
|
|
10
|
+
import { N as NumberModel, b as VisualizationManager, S as SelectBase, q as defaultStatisticsCalculator, B as BooleanModel, H as HistogramModel, M as Matrix, p as PivotModel, R as RankingModel, a as VisualizerBase, _ as __awaiter } from './shared2.mjs';
|
|
11
|
+
export { A as AlternativeVisualizersWrapper, D as DataProvider, n as NpsAdapter, o as NpsVisualizer, m as NpsVisualizerWidget, P as PostponeHelper, k as StatisticsTable, j as StatisticsTableAdapter, l as StatisticsTableBoolean, i as Text, T as TextTableAdapter, f as VisualizationMatrixDropdown, e as VisualizationMatrixDynamic, c as VisualizationPanel, d as VisualizationPanelDynamic, V as VisualizerFactory, g as WordCloud, W as WordCloudAdapter, h as hideEmptyAnswersInData, t as textHelper } from './shared2.mjs';
|
|
12
12
|
import Plotly from 'plotly.js-dist-min';
|
|
13
13
|
|
|
14
14
|
class PlotlySetup {
|
|
@@ -27,8 +27,9 @@ class PlotlySetup {
|
|
|
27
27
|
text: labels.map((label) => {
|
|
28
28
|
return PlotlySetup.getTruncatedLabel(label, model.labelTruncateLength);
|
|
29
29
|
}),
|
|
30
|
-
hoverinfo: "
|
|
30
|
+
hoverinfo: "value+text",
|
|
31
31
|
textposition: "inside",
|
|
32
|
+
texttemplate: "%{text}"
|
|
32
33
|
};
|
|
33
34
|
if (model.chartType === "doughnut") {
|
|
34
35
|
traceConfig.type = "pie";
|
|
@@ -42,9 +43,15 @@ class PlotlySetup {
|
|
|
42
43
|
}
|
|
43
44
|
datasets.forEach((dataset, index) => {
|
|
44
45
|
const isNotEmpty = dataset.some((value) => value != 0);
|
|
46
|
+
let pieTexts = traceConfig.text;
|
|
47
|
+
if (model.showPercentages) {
|
|
48
|
+
const percentages = model.getPercentages([dataset])[0];
|
|
49
|
+
pieTexts = labels.map((l, li) => (model.showOnlyPercentages ? percentages[li] : PlotlySetup.getTruncatedLabel(l, model.labelTruncateLength) + "<br>" + percentages[li]) + "%");
|
|
50
|
+
}
|
|
45
51
|
if (isNotEmpty) {
|
|
46
52
|
traces.push(Object.assign({}, traceConfig, {
|
|
47
53
|
values: dataset,
|
|
54
|
+
text: pieTexts,
|
|
48
55
|
domain: {
|
|
49
56
|
column: traces.length % layoutColumns,
|
|
50
57
|
row: Math.floor(traces.length / layoutColumns),
|
|
@@ -631,7 +638,7 @@ class PlotlyChartAdapter {
|
|
|
631
638
|
create(chartNode) {
|
|
632
639
|
return __awaiter(this, void 0, void 0, function* () {
|
|
633
640
|
const [plot, plotlyOptions] = yield this.update(chartNode);
|
|
634
|
-
if (this.model instanceof SelectBase) {
|
|
641
|
+
if (this.model instanceof SelectBase && this.model.supportSelection) {
|
|
635
642
|
const _model = this.model;
|
|
636
643
|
chartNode["on"]("plotly_click", (data) => {
|
|
637
644
|
if (data.points.length > 0) {
|