Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();
}
}