User Tools

Site Tools


start

This is an old revision of the document!


<html>

<head>
  <!--Load the AJAX API-->
  <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
  <script type="text/javascript">
    // Load the Visualization API and the corechart package.
    google.charts.load('current', {'packages':['corechart']});
    // Set a callback to run when the Google Visualization API is loaded.
    google.charts.setOnLoadCallback(drawChart);
    // Callback that creates and populates a data table,
    // instantiates the pie chart, passes in the data and
    // draws it.
    function drawChart() {
      // Create the data table.
      var data = new google.visualization.DataTable();
      data.addColumn('string', 'Topping');
      data.addColumn('number', 'Slices');
      data.addRows([
        ['Mushrooms', 3],
        ['Onions', 1],
        ['Olives', 1],
        ['Zucchini', 1],
        ['Pepperoni', 2]
      ]);
      // Set chart options
      var options = {'title':'How Much Pizza I Ate Last Night',
                     'width':400,
                     'height':300};
      // Instantiate and draw our chart, passing in some options.
      var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
      chart.draw(data, options);
    }
  </script>
</head>
<body>
  <!--Div that will hold the pie chart-->
  <div id="chart_div"></div>
</body>

</html>

<html>

<head>
  <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
  <script type="text/javascript">
    google.charts.load('current', {'packages': ['table', 'map', 'corechart']});
    google.charts.setOnLoadCallback(initialize);
    function initialize() {
      // The URL of the spreadsheet to source data from.
      var query = new google.visualization.Query(
          'https://spreadsheets.google.com/pub?key=pCQbetd-CptF0r8qmCOlZGg');
      query.send(draw);
    }
    function draw(response) {
      if (response.isError()) {
        alert('Error in query');
      }
      var ticketsData = response.getDataTable();
      var chart = new google.visualization.ColumnChart(
          document.getElementById('chart_div'));
      chart.draw(ticketsData, {'isStacked': true, 'legend': 'bottom',
          'vAxis': {'title': 'Number of tickets'}});
      var geoData = google.visualization.arrayToDataTable([
        ['Lat', 'Lon', 'Name', 'Food?'],
        [51.5072, -0.1275, 'Cinematics London', true],
        [48.8567, 2.3508, 'Cinematics Paris', true],
        [55.7500, 37.6167, 'Cinematics Moscow', false]]);
      var geoView = new google.visualization.DataView(geoData);
      geoView.setColumns([0, 1]);
      var table =
          new google.visualization.Table(document.getElementById('table_div'));
      table.draw(geoData, {showRowNumber: false, width: '100%', height: '100%'});
      var map =
          new google.visualization.Map(document.getElementById('map_div'));
      map.draw(geoView, {showTip: true});
      // Set a 'select' event listener for the table.
      // When the table is selected, we set the selection on the map.
      google.visualization.events.addListener(table, 'select',
          function() {
            map.setSelection(table.getSelection());
          });
      // Set a 'select' event listener for the map.
      // When the map is selected, we set the selection on the table.
      google.visualization.events.addListener(map, 'select',
          function() {
            table.setSelection(map.getSelection());
          });
    }
  </script>
</head>
<body>
  <table align="center">
    <tr valign="top">
      <td style="width: 50%;">
        <div id="map_div" style="width: 400px; height: 300;"></div>
      </td>
      <td style="width: 50%;">
        <div id="table_div"></div>
      </td>
    </tr>
    <tr>
      <td colSpan=2>
        <div id="chart_div" style="align: center; width: 700px; height: 300px;"></div>
      </td>
    </tr>
  </table>
</body>

</html>

<graphviz dot right 900×500> digraph ATN { rankdir=LR; s25[fontsize=11, label=“25”, shape=doublecircle, fixedsize=true, width=.6]; s239[fontsize=24,label=“239”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s240[fontsize=11,label=“240”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s241[fontsize=11,label=“241”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s242[fontsize=11,label=“242”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s243[fontsize=11,label=“{&rarr;\n243\nd=24|{<p0>|<p1>}}”, shape=record, fixedsize=false, peripheries=1]; s244[fontsize=11,label=“&larr;\n244”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s245[fontsize=11,label=“245”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s246[fontsize=11,label=“246”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s247[fontsize=11,label=“&rarr;\n247+”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s24[fontsize=11,label=“24”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s248[fontsize=11,label=“&larr;\n248”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s249[fontsize=11,label=“{249+\nd=25|{<p0>|<p1>}}”, shape=record, fixedsize=false, peripheries=1]; s250[fontsize=11,label=“250”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s251[fontsize=11,label=“251”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s252[fontsize=11,label=“252”, shape=circle, fixedsize=true, width=.55, peripheries=1]; s24 → s239 [fontname=“Times-Italic”, label=“&epsilon;”]; s239 → s247 [fontsize=11, fontname=“Courier”, arrowsize=.7, label = “'{'”, arrowhead = normal]; s247 → s240 [fontname=“Times-Italic”, label=“&epsilon;”]; s240 → s243 [fontsize=11, fontname=“Courier”, arrowsize=.7, label = “'case'”, arrowhead = normal]; s243:p0 → s241 [fontname=“Times-Italic”, label=“&epsilon;”]; s243:p1 → s242 [fontname=“Times-Italic”, label=“&epsilon;”]; s241 → s244 [fontsize=11, fontname=“Courier”, arrowsize=.7, label = “'null'”, arrowhead = normal]; s242 → s244 [fontsize=11, fontname=“Courier”, arrowsize=.7, label = “<element>”, arrowhead = normal]; s244 → s245 [fontname=“Times-Italic”, label=“&epsilon;”]; s245 → s246 [fontsize=11, fontname=“Courier”, arrowsize=.7, label = “'⇒'”, arrowhead = normal]; s246 → s248 [fontsize=11, fontname=“Courier”, arrowsize=.7, label = “<block>”, arrowhead = normal]; s248 → s249 [fontname=“Times-Italic”, label=“&epsilon;”]; s249:p0 → s247 [fontname=“Times-Italic”, label=“&epsilon;”, style=“dashed”]; s249:p1 → s250 [fontname=“Times-Italic”, label=“&epsilon;”]; s250 → s251 [fontname=“Times-Italic”, label=“&epsilon;”]; s251 → s252 [fontsize=11, fontname=“Courier”, arrowsize=.7, label = “'}'”, arrowhead = normal]; s252 → s25 [fontname=“Times-Italic”, label=“&epsilon;”]; } </graphviz>

start.1496953593.txt.gz · Last modified: (external edit)