JSFiddle - React, Tailwind, and code Playground

by Pavel Savushchyk

HTML

<script src="http://code.jquery.com/jquery-2.1.0.js"></script>
<script src="http://localhost:8080/trunk/client/visualize.js?_opt=true"></script>

<!--Provide container to render your visualization-->
<div id="container" style="height: 400px;position: relative"></div>

JavaScript

var adv;
visualize({
      auth: {
        name: "superuser",
        password: "superuser"
      }
    }, function(v) {
      function renderView() {
        adv = v.adhocView({
          resource: "/public/Samples/Ad_Hoc_Views/01__Geographic_Results_by_Segment",
          container: "#container",
          canvas: {
            type: "Crosstab"
          }
        });
      }

      //render initial view
      renderView();
  });