How to use the survey-analytics.VisualizationPanel function in survey-analytics

To help you get started, we’ve selected a few survey-analytics examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github surveyjs / surveyjs_angular_cli / src / app / survey.analytics.component.ts View on Github external
product_improvement: ""
    };

    var data = [firstResult, secondResult];
    // EO survey results data object

    var normalizedData = data.map(function(item) {
      survey.getAllQuestions().forEach(function(q) {
        if (item[q.name] === undefined) {
          item[q.name] = "";
        }
      });
      return item;
    });

    var visPanel = new SurveyAnalytics.VisualizationPanel(
      document.getElementById("surveyAnalyticsContainer"),
      survey.getAllQuestions(),
      normalizedData
    );
    visPanel.render();
  }
}

survey-analytics

SurveyJS analytics Library.

SEE LICENSE IN LICENSE
Latest version published 5 days ago

Package Health Score

90 / 100
Full package analysis

Popular survey-analytics functions