Cart Buy Licenses Contact Integrate into App Docs Support Login/Register
v 1.8.51
v 1.8.51
Overview Examples Docs Source Download

Survey Analytics + SurveyJS.IO service

You can visualize any published survey results from the service



        var json = {
  "questions": [
      "type": "checkbox",
      "name": "langs",
      "title": "What language(s) are you currently using?",
      "colCount": 4,
      "isRequired": true,
      "choices": [ "Javascript", "Java", "Python", "CSS", "PHP", "Ruby", "C++", "C", "Shell", "C#", "Objective-C", "R", "VimL", "Go", "Perl", "CoffeeScript", "TeX", "Swift", "Scala", "Emacs List", "Haskell", "Lua", "Clojure", "Matlab", "Arduino", "Makefile", "Groovy", "Puppet", "Rust", "PowerShell" ],
      "validators": [
          "type": "answercountvalidator",
          "maxCount": 3,
          "text": "Please select maximum three languges."
    // You can set JSON directly
    // var survey = new Survey.Model(json);

    // Or get survey JSON from our service by survey Id
    var jsonWithIds = {
        surveyId: '5af48e08-a0a5-44a5-83f4-1c90e8e98de1',
        surveyPostId: '3ce10f8b-2d8a-4ca2-a110-2994b9e697a1'
    var survey = new Survey.Model(jsonWithIds);

    var surveyResultNode = document.getElementById("surveyResult");
    surveyResultNode.innerHTML = "";

    // Published survey results can be obtained via the API method using survey ID
    $.get("", function (data) {
        var visPanel = new SurveyAnalytics.VisualizationPanel(
            { labelTruncateLength: 27 }
        visPanel.showHeader = true;



<!DOCTYPE html>
<html lang="en">
    <title>You can visualize any published survey results from the service, Knockoutjs Survey Library Example</title>

<meta name="viewport" content="width=device-width" />
    <script src=""></script>
    <script src=""></script>
    <script src="/DevBuilds/survey-knockout/survey.ko.min.js"></script>
    <link rel="stylesheet" href="./index.css">
<script src=""></script>

<script src=""></script>

<script src=""></script>

<script src=""></script>        <link href="/DevBuilds/survey-analytics/" rel="stylesheet" />
        <script src="/DevBuilds/survey-analytics/"></script>



<div id="loadingIndicator">
        <div id="loading"><strong>loading...</strong><span></span></div>
</div>            <div id="surveyElement" style="display:inline-block;width:100%;">
    <div id="surveyResult"></div>

<script type="text/javascript" src="./index.js"></script>