survey-analytics 2.1.1 → 2.2.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.1.1
2
+ * surveyjs - SurveyJS Dashboard library v2.2.1
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
  */
@@ -1543,7 +1543,7 @@ class SelectBase extends VisualizerBase {
1543
1543
  if (!!question.choicesFromQuestion && !!question.survey) {
1544
1544
  question = question.survey.getQuestionByName(question.choicesFromQuestion);
1545
1545
  }
1546
- return question["activeChoices"];
1546
+ return question["activeChoices"] || question.visibleChoices || question.choices || [];
1547
1547
  }
1548
1548
  getValues() {
1549
1549
  const values = this.valuesSource().map((choice) => choice.value);
@@ -10105,6 +10105,10 @@ class PlotlySetup {
10105
10105
  layout.showlegend = true;
10106
10106
  if (model.chartType == "stackedbar") {
10107
10107
  layout.barmode = "stack";
10108
+ layout.height =
10109
+ (seriesLabels.length + 1) * lineHeight +
10110
+ topMargin +
10111
+ bottomMargin;
10108
10112
  }
10109
10113
  else {
10110
10114
  layout.height =