Jeff Tsen 1 year ago
commit
f71f6262ae
7 changed files with 299 additions and 0 deletions
  1. 0 0
      README.md
  2. 32 0
      bisect_visualization.html
  3. 1 0
      data.js
  4. BIN
      doge123.png
  5. 1 0
      k_means_data.js
  6. 32 0
      k_means_visualization.html
  7. 233 0
      loader.js

+ 0 - 0
README.md


+ 32 - 0
bisect_visualization.html

@@ -0,0 +1,32 @@
+ <html>
+  <head>
+    <link rel='icon' href="doge123.png">
+    <script type="text/javascript" src="loader.js"></script>
+    <script type="text/javascript" src="data.js"></script>
+    <script type="text/javascript">
+      google.charts.load('current', {
+        'packages':['geochart'],
+        'mapsApiKey': 'AIzaSyCM2XMOAsoTdl5H2JsaUO0QzWHnX40fYOA'
+      });
+      google.charts.setOnLoadCallback(drawRegionsMap);
+
+      function drawRegionsMap() {
+        var data = google.visualization.arrayToDataTable(clusters);
+
+        var options = {
+          colorAxis:{colors:['blue', 'red', 'green', 'orange', 'purple', 'pink', 'yellow', 'black']},
+          backgroundColor: '#ffffff',
+          datalessRegionColor: '#f2f2f2',
+          defaultColor: '#f5f5f5',
+        };
+
+        var chart = new google.visualization.GeoChart(document.getElementById('geochart-colors'));
+
+        chart.draw(data, options);
+      }
+    </script>
+  </head>
+  <body>
+    <div id="geochart-colors" style="width: 1900px; height: 850px;"></div>
+  </body>
+</html>

File diff suppressed because it is too large
+ 1 - 0
data.js


BIN
doge123.png


File diff suppressed because it is too large
+ 1 - 0
k_means_data.js


+ 32 - 0
k_means_visualization.html

@@ -0,0 +1,32 @@
+ <html>
+  <head>
+    <link rel='icon' href="doge123.png">
+    <script type="text/javascript" src="loader.js"></script>
+    <script type="text/javascript" src="k_means_data.js"></script>
+    <script type="text/javascript">
+      google.charts.load('current', {
+        'packages':['geochart'],
+        'mapsApiKey': 'AIzaSyCM2XMOAsoTdl5H2JsaUO0QzWHnX40fYOA'
+      });
+      google.charts.setOnLoadCallback(drawRegionsMap);
+
+      function drawRegionsMap() {
+        var data = google.visualization.arrayToDataTable(clusters);
+
+        var options = {
+          colorAxis:{colors:['blue', 'red', 'green', 'orange', 'purple', 'pink', 'yellow', 'black']},
+          backgroundColor: '#ffffff',
+          datalessRegionColor: '#f2f2f2',
+          defaultColor: '#f5f5f5',
+        };
+
+        var chart = new google.visualization.GeoChart(document.getElementById('geochart-colors'));
+
+        chart.draw(data, options);
+      }
+    </script>
+  </head>
+  <body>
+    <div id="geochart-colors" style="width: 1900px; height: 850px;"></div>
+  </body>
+</html>

File diff suppressed because it is too large
+ 233 - 0
loader.js