d3js-plugins-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +28 -0
- data/Rakefile +1 -0
- data/d3js-plugins-rails.gemspec +21 -0
- data/lib/d3js-plugins-rails/version.rb +7 -0
- data/lib/d3js-plugins-rails.rb +10 -0
- data/vendor/assets/javascripts/d3/plugins/.gitignore +1 -0
- data/vendor/assets/javascripts/d3/plugins/LICENSE +26 -0
- data/vendor/assets/javascripts/d3/plugins/Makefile +87 -0
- data/vendor/assets/javascripts/d3/plugins/README.md +19 -0
- data/vendor/assets/javascripts/d3/plugins/box/box.js +301 -0
- data/vendor/assets/javascripts/d3/plugins/bullet/README.md +14 -0
- data/vendor/assets/javascripts/d3/plugins/bullet/bullet.js +241 -0
- data/vendor/assets/javascripts/d3/plugins/chernoff/README.md +15 -0
- data/vendor/assets/javascripts/d3/plugins/chernoff/chernoff.js +176 -0
- data/vendor/assets/javascripts/d3/plugins/cie/README.md +54 -0
- data/vendor/assets/javascripts/d3/plugins/cie/cie.js +155 -0
- data/vendor/assets/javascripts/d3/plugins/fisheye/README.md +43 -0
- data/vendor/assets/javascripts/d3/plugins/fisheye/fisheye.js +85 -0
- data/vendor/assets/javascripts/d3/plugins/force_labels/README.md +29 -0
- data/vendor/assets/javascripts/d3/plugins/force_labels/force_labels.js +56 -0
- data/vendor/assets/javascripts/d3/plugins/geo/polyhedron/README.md +7 -0
- data/vendor/assets/javascripts/d3/plugins/geo/polyhedron/polyhedron.js +436 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/README.md +107 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/aitoff.js +40 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/armadillo.js +79 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/august.js +15 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/baker.js +28 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/berghaus.js +60 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/boggs.js +27 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/bonne.js +29 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/bromley.js +5 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/collignon.js +17 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/conic-conformal.js +29 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/conic-equidistant.js +27 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/craig.js +24 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/craster.js +18 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/cylindrical-equal-area.js +23 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert1.js +18 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert2.js +17 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert3.js +17 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert4.js +24 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert5.js +17 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eckert6.js +22 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/eisenlohr.js +16 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/end.js +1 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/gringorten.js +111 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/guyou.js +46 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hammer-retroazimuthal.js +75 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hammer.js +51 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hatano.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/healpix.js +64 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/hill.js +64 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/homolosine.js +17 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/interrupt.js +111 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/kavrayskiy7.js +15 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/lagrange.js +27 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/larrivee.js +39 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/laskowski.js +31 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/littrow.js +21 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/loximuthal.js +29 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/miller.js +15 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mollweide.js +35 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-parabolic.js +21 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-quartic.js +23 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/mt-flat-polar-sinusoidal.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/natural-earth.js +22 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/nell-hammer.js +20 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/parallel1.js +12 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/parallel2.js +13 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/peirce-quincuncial.js +14 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/polyconic.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/projection.js +29 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/robinson.js +83 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/satellite.js +68 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/sinu-mollweide.js +19 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/sinusoidal.js +15 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/start.js +1 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/aitoff-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/armadillo-test.js +28 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/baker-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/boggs-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/bonne-test.js +45 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/craig-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/craster-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/env.js +32 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/equirectangular-test.js +97 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hammer-test.js +29 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hatano-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/hill-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/larrivee-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/laskowski-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/littrow-test.js +24 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/loximuthal-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mollweide-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-parabolic-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-quartic-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/mt-flat-polar-sinusoidal-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/natural-earth-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/quartic-authalic-test.js +0 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/robinson-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/wagner6-test.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/test/winkel3-test.js +26 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten.js +41 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/van-der-grinten4.js +22 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner4.js +9 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner6.js +15 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wagner7.js +22 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/wiechel.js +14 -0
- data/vendor/assets/javascripts/d3/plugins/geo/projection/winkel3.js +40 -0
- data/vendor/assets/javascripts/d3/plugins/geo/tile/README.md +6 -0
- data/vendor/assets/javascripts/d3/plugins/geo/tile/tile.js +53 -0
- data/vendor/assets/javascripts/d3/plugins/geodesic/README.md +3 -0
- data/vendor/assets/javascripts/d3/plugins/geodesic/geodesic.js +130 -0
- data/vendor/assets/javascripts/d3/plugins/geom/contour/README.md +5 -0
- data/vendor/assets/javascripts/d3/plugins/geom/contour/contour.js +72 -0
- data/vendor/assets/javascripts/d3/plugins/graph/README.md +148 -0
- data/vendor/assets/javascripts/d3/plugins/graph/data/cities-matrix.json +37 -0
- data/vendor/assets/javascripts/d3/plugins/graph/data/cities.csv +36 -0
- data/vendor/assets/javascripts/d3/plugins/graph/data/miserables.json +338 -0
- data/vendor/assets/javascripts/d3/plugins/graph/graph.js +161 -0
- data/vendor/assets/javascripts/d3/plugins/graph/index.html +37 -0
- data/vendor/assets/javascripts/d3/plugins/hexbin/README.md +58 -0
- data/vendor/assets/javascripts/d3/plugins/hexbin/hexbin.js +96 -0
- data/vendor/assets/javascripts/d3/plugins/hive/README.md +5 -0
- data/vendor/assets/javascripts/d3/plugins/hive/hive.js +80 -0
- data/vendor/assets/javascripts/d3/plugins/horizon/README.md +11 -0
- data/vendor/assets/javascripts/d3/plugins/horizon/horizon.js +192 -0
- data/vendor/assets/javascripts/d3/plugins/interpolate-zoom/README.md +11 -0
- data/vendor/assets/javascripts/d3/plugins/interpolate-zoom/interpolate-zoom.js +75 -0
- data/vendor/assets/javascripts/d3/plugins/jsonp/README.md +26 -0
- data/vendor/assets/javascripts/d3/plugins/jsonp/jsonp.js +25 -0
- data/vendor/assets/javascripts/d3/plugins/keybinding/README.md +17 -0
- data/vendor/assets/javascripts/d3/plugins/keybinding/keybinding.js +120 -0
- data/vendor/assets/javascripts/d3/plugins/longscroll/README.md +10 -0
- data/vendor/assets/javascripts/d3/plugins/longscroll/longscroll.js +75 -0
- data/vendor/assets/javascripts/d3/plugins/package.json +20 -0
- data/vendor/assets/javascripts/d3/plugins/qq/README.md +3 -0
- data/vendor/assets/javascripts/d3/plugins/qq/qq.js +249 -0
- data/vendor/assets/javascripts/d3/plugins/rollup/README.md +5 -0
- data/vendor/assets/javascripts/d3/plugins/rollup/rollup.js +131 -0
- data/vendor/assets/javascripts/d3/plugins/sankey/README.md +17 -0
- data/vendor/assets/javascripts/d3/plugins/sankey/sankey.js +292 -0
- data/vendor/assets/javascripts/d3/plugins/simplify/README.md +6 -0
- data/vendor/assets/javascripts/d3/plugins/simplify/simplify-test.js +193 -0
- data/vendor/assets/javascripts/d3/plugins/simplify/simplify.js +446 -0
- data/vendor/assets/javascripts/d3/plugins/superformula/superformula.js +98 -0
- data/vendor/assets/javascripts/d3/plugins/urlencode/urlencode-test.js +68 -0
- data/vendor/assets/javascripts/d3/plugins/urlencode/urlencode.js +37 -0
- metadata +218 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
[
|
2
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00020615580539426687,0],
|
3
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
|
4
|
+
[0,0,0.006697839492217511,0.004195012544212019,0.002392362950985978,0.004166244937465728,0.0010882916599248707,0.005024621548810736,0,0,0,0.0002972456999111755,0,0,0,0,0.000215743502273761,0.0014382900151584067,0.001462270547626666,0.0035477639729594983,0.0006808032522768457,0,0.0005081976117990942,0.01030756446432287,0,0.005532683677375547,0.0009492858615495386,0.00085819596703263,0,0,0.0003547763972959499,0.0014238836312462134,0.007378416939103883,0.012498779973475276,0],
|
5
|
+
[0,0,0.0028573865721265874,0.0010307564464322868,0.0010211822978762211,0.0013424130463634651,0.0003979278074153877,0.0014190965569681805,0,0,0,0.00024451110902005296,0,0,0,0,0.00012465360775685237,0.0012225555451002646,0.0006280551130622947,0.0019129329459331762,0.0003451887004164557,0,0.00033560100353696156,0.005187201429951476,0,0.002296485982191037,0.00028765800303168134,0.00023012730564690698,0,0,0,0.0004890041536088679,0.0029484764666434958,0.005038621483020077,0],
|
6
|
+
[0,0,0.0025170075265272115,0.0011985750126320056,0.0008677701155886958,0.0012656843746806552,0.00016780050176848078,0.0014814188447387971,0,0,0,0.00017738819864797494,0,0,0,0,0,0.0007671060725157214,0.0005177717603551599,0.0011793815544417793,0.00034039259392280386,0,0.0002349188960327493,0.004415534088548194,0.00016300439527482897,0.0017019855501530668,0.00025889039628538944,0.00020135969890061506,0,0,0,0.0004027193978012301,0.0024594723130346276,0.004295676587284994,0],
|
7
|
+
[0,0,0.005197136867132299,0.002205396087674128,0.0014382900151584067,0.0024067241738200767,0.0006520356455305537,0.0024978140683369855,0,0,0,0.00025889039628538944,0,0,0,0,0.0002109473957801092,0.00111227219239313,0.0009876276168518964,0.0027567225290536126,0.00044107470142701615,0,0.00045066239830651034,0.00796822061902001,0,0.0033032618961550647,0.000512984686077127,0.00047943000505280223,0,0,0.00018697589552746908,0.0011170592666711627,0.00550378058739497,0.009631954736026908,0],
|
8
|
+
[0,0,0.001840991348528399,0.0006855903265548785,0.00029244959341752363,0.0008006607535400462,0.00018697589552746908,0.0006951644751109444,0,0,0,0,0,0,0,0,0,0.0002780703061521872,0.00020615580539426687,0.0005945004320379699,0.00017738819864797494,0,0,0.0013903289502218887,0,0.000834215434564371,0.00020615580539426687,0,0,0,0,0.00020615580539426687,0.0012465360775685236,0.0020327904471963767,0],
|
9
|
+
[0,0,0.005403071383243901,0.0021478608741815446,0.0012656843746806552,0.002114261032079125,0.0005992875063160028,0.00256496859146373,0,0,0,0.00022533119915325517,0,0,0,0,0.00016300439527482897,0.0010930787342029037,0.0007910414439058858,0.002512220452249179,0.0004650687822187036,0,0.00032601330665746743,0.00648648564673455,0,0.0030156309897702398,0.0004698558564967364,0.0003499848069101075,0,0,0.00013424130463634654,0.0009205182548032468,0.004506623983065103,0.007757318384317995,0],
|
10
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
|
11
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
|
12
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00022053960876741282,0,0,0,0.00033560100353696156,0,0.00024451110902005296,0,0,0,0,0,0,0.00018697589552746908,0.00013903289502218886,0],
|
13
|
+
[0,0,0.0004218993076680279,0.00024930269940589525,0.00015821280488898665,0.00024451110902005296,0,0.00026368650277904123,0,0,0,0,0,0,0,0,0,0.00042669089805387017,0.0003451887004164557,0.0007958736792620133,0.0002109473957801092,0,0,0.0010643111274566117,0,0.0005848811224038094,0.00016780050176848078,0,0,0,0,0.00011985750126320056,0.0008054478278180791,0.0005753069738477438,0],
|
14
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
|
15
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00016780050176848078,0,0,0,0,0,0,0,0,0,0,0],
|
16
|
+
[0,0,0.00016780050176848078,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00015821280488898665,0,0,0,0.00037874789754858995,0,0.00014382900151584067,0,0,0,0,0,0,0.00015821280488898665,0.00016780050176848078,0],
|
17
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00012465360775685237,0,0,0,0.0001965681085147727,0,0,0,0,0,0,0,0,0.00011506139476954876,0.00015341669839533483,0],
|
18
|
+
[0,0,0.00018697589552746908,0.00022533119915325517,0.00014382900151584067,0.00023971500252640112,0,0.00022533119915325517,0,0,0,0.00011985750126320056,0,0,0,0,0.00020615580539426687,0.0006663968683646524,0.00032601330665746743,0.0013567742691975636,0.00027327419965853536,0,0.00024930269940589525,0.0019512747012355339,0,0.0008485766573984697,0,0,0,0,0,0,0.0008869635737789219,0.0008821313384227944,0],
|
19
|
+
[0,0,0.0015245928353972823,0.0013136454396171734,0.000757486762881561,0.000973221232939703,0.0002109473957801092,0.0011890008640759399,0,0,0,0.0004362785949333643,0,0,0,0,0.0006040745805940356,0.0021430286388254166,0.0017067726244310996,0.004909460799669379,0.0010403757560664474,0,0.000915731180525214,0.011065367354751094,0.00042669089805387017,0.0037683306783737685,0.0005848811224038094,0.0004027193978012301,0.00012465360775685237,0,0.0002972456999111755,0.00047943000505280223,0.004708042391367241,0.004257334831982636,0],
|
20
|
+
[0,0,0.001586915123167899,0.000915731180525214,0.0006088616548720685,0.0009636470843836373,0.0002349188960327493,0.001025969372154254,0,0,0,0.0002972456999111755,0,0,0,0,0.00018218430514162676,0.0012704714489586882,0.0007287191561352691,0.0034087581745841666,0.0005753069738477438,0,0.000431487004547522,0.00489004153608868,0,0.002186202629483902,0.0003451887004164557,0.0003308048970433097,0.00011985750126320056,0,0.00014382900151584067,0.0005225588346331928,0.002914921785619171,0.0035286156758473674,0],
|
21
|
+
[0,0,0.0037155825391592175,0.0030060116801360797,0.0014766317704607644,0.0025313687493613104,0.0004842170793308351,0.002454685238756595,0,0,0.0002780703061521872,0.0009492858615495386,0,0.00012944519814269472,0.00012465360775685237,0.00014862510800949248,0.0012273426193782975,0.00512984686077127,0.00372036961343725,0.008298799710672846,0.0025793298142978284,0,0.002775915987243839,0.019714165420657476,0.00029244959341752363,0.00735944928630413,0.000810234902096112,0.0006232680387842618,0.00027327419965853536,0,0.0003451887004164557,0.0010691433628127393,0.008063962104580668,0.009665373933816949,0],
|
22
|
+
[0,0,0.0009253053290812796,0.0005800940481257767,0.0003883355944280841,0.0005225588346331928,0.00011985750126320056,0.0006616097940866194,0,0,0,0.00026368650277904123,0,0,0,0,0.00020615580539426687,0.0013136454396171734,0.0007766802210717871,0.0026464391763464778,0.00025889039628538944,0,0.00044107470142701615,0.003753924294461575,0,0.0016012763460019977,0.00023012730564690698,0.00011985750126320056,0,0,0.00014382900151584067,0.0003308048970433097,0.001836204274250366,0.002732741996585354,0],
|
23
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00014862510800949248,0,0,0,0,0,0,0,0,0,0,0],
|
24
|
+
[0,0,0.0009253053290812796,0.0006903774008329114,0.0005034105375210612,0.0006424163358963933,0,0.0007047386236670101,0,0,0,0.0001917720020211209,0,0,0,0,0.0003835440040422418,0.001318432513895206,0.0007095708590231376,0.003749137220183542,0.0006040745805940356,0,0.0006328421873403276,0.006194293471462165,0.00012465360775685237,0.001999235766172052,0.00018218430514162676,0,0,0,0,0.0003883355944280841,0.002905347637063105,0.003955297541685618,0],
|
25
|
+
[0.00011506139476954876,0,0.013304001995902884,0.008270348231473216,0.006213261124261919,0.007143579333011705,0.0013663935788317241,0.008687184982286834,0,0,0.0005561586767356122,0.0015293799096753153,0,0.0003451887004164557,0.0003691602006690958,0.00031162950328432145,0.002425917632010303,0.011558977938325615,0.0062277126692522064,0.022595442203096134,0.003801885359398093,0.00015821280488898665,0.006654484857246647,0.04282760518949924,0.00044587080792066793,0.01687127555459927,0.0016540244852165488,0.0009972017654079621,0.00026368650277904123,0,0.0007910414439058858,0.003394351790671973,0.022125766990911774,0.03680085931776823,0],
|
26
|
+
[0,0,0,0,0.00022533119915325517,0,0,0,0,0,0,0,0,0,0,0,0,0.00029244959341752363,0,0.0003835440040422418,0,0,0,0.0006855903265548785,0,0.00020135969890061506,0,0,0,0,0,0,0.0002972456999111755,0.00034039259392280386,0],
|
27
|
+
[0,0,0.006098551985901509,0.0033080489704330977,0.0017307531568993588,0.0026464391763464778,0.0006663968683646524,0.003399138864950006,0,0,0.00023971500252640112,0.0006424163358963933,0,0,0.00015821280488898665,0,0.0006951644751109444,0.0038881881796369684,0.0027854901357999046,0.007671060725157215,0.0014287158666023408,0,0.001586915123167899,0.016439535648014418,0.00016780050176848078,0.006390744161173892,0.0009396665519153783,0.000810234902096112,0.0001965681085147727,0,0.0006136487291501015,0.001591702197445932,0.008231961315092764,0.010662530538146817,0],
|
28
|
+
[0,0,0.0010643111274566117,0.00044587080792066793,0.0002540988058995471,0.0005897133577599371,0.00012944519814269472,0.0005369652185453861,0,0,0,0.00015341669839533483,0,0,0,0,0,0.0005992875063160028,0.0004890041536088679,0.0009013247966130207,0.0002540988058995471,0,0.00014382900151584067,0.001586915123167899,0,0.0009540729358275716,0.000215743502273761,0.00023012730564690698,0,0,0,0.00022533119915325517,0.0014335029408803737,0.001351987194919531,0],
|
29
|
+
[0,0,0.0006808032522768457,0.0003883355944280841,0.00015821280488898665,0.00025889039628538944,0,0.0002349188960327493,0,0,0,0,0,0,0,0,0,0.0002828618965380295,0.0001965681085147727,0.0005800940481257767,0,0,0,0.0008006607535400462,0,0.0005369652185453861,0.00016780050176848078,0.00013424130463634654,0,0,0,0.00012465360775685237,0.0007143579333011704,0.0006424163358963933,0],
|
30
|
+
[0,0,0.00011985750126320056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00011985750126320056,0.00014382900151584067,0.00022053960876741282,0,0,0,0.00023012730564690698,0,0.0001917720020211209,0,0,0,0,0,0,0.00015821280488898665,0.0001725966082621326,0],
|
31
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00014382900151584067,0],
|
32
|
+
[0,0,0.00027327419965853536,0.00016300439527482897,0,0.00020135969890061506,0,0.00011985750126320056,0,0,0,0,0,0,0,0,0,0.0002109473957801092,0.00022053960876741282,0.00033560100353696156,0,0,0,0.0003308048970433097,0,0.00041230709468072425,0,0,0,0,0,0,0.0002780703061521872,0.0003308048970433097,0],
|
33
|
+
[0,0,0.0011458268734174546,0.00044107470142701615,0.0002828618965380295,0.0005945004320379699,0,0.0007622738371595939,0,0,0,0,0,0,0,0,0.00016780050176848078,0.00041710320117437603,0.0002780703061521872,0.0005897133577599371,0.00016300439527482897,0,0.00020135969890061506,0.0020423645957524422,0,0.0008965377223349877,0.00012944519814269472,0,0,0,0,0.00016300439527482897,0.0007383384657694295,0.001160233257329648,0],
|
34
|
+
[0,0,0.004760880852737981,0.0028286189653802954,0.001860184806718625,0.0029101347113411383,0.0005081976117990942,0.002804638432912036,0,0,0.00012944519814269472,0.0005848811224038094,0,0,0.00014862510800949248,0,0.0007479126143254953,0.0034662933880767505,0.0023108472050251353,0.005192169148541887,0.0013040261299830129,0,0.0012656843746806552,0.012053040132681082,0.00013903289502218886,0.005940036601789287,0.0007239320818572362,0.0006040745805940356,0.00014382900151584067,0,0.0002972456999111755,0.000915731180525214,0.005911585122589658,0.006841451720558497,0],
|
35
|
+
[0.00015341669839533483,0,0.01238858694292433,0.006769645606388004,0.0045499786180359676,0.008998796421139918,0.0015821280488898663,0.007795705300698447,0,0,0.00032601330665746743,0.000810234902096112,0,0,0.0004698558564967364,0.0002828618965380295,0.0008533637316765025,0.005211588412122586,0.0031210821071212475,0.009995953025469786,0.002536200984717438,0,0.0029293281695313643,0.028060835874110648,0.00022533119915325517,0.010782207395097639,0.0014814188447387971,0.0006472485712525209,0.00026368650277904123,0,0.0004746429307747693,0.0018458235838845266,0.010811110485078214,0.014119159455511312,0],
|
36
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
|
37
|
+
]
|
@@ -0,0 +1,36 @@
|
|
1
|
+
name,latitude,longitude,population,color
|
2
|
+
Excelsior,37.7244,-122.421,0.083884,#E41A1C
|
3
|
+
Crocker Amazon,37.7107,-122.4372,0.058439,#FFFF33
|
4
|
+
Marina,37.8021,-122.4369,0.40364,#FF7F00
|
5
|
+
Nob Hill,37.793,-122.416,0.33259,#FF7F00
|
6
|
+
North Beach,37.8045,-122.4076,0.28784,#FF7F00
|
7
|
+
Pacific Heights,37.7924,-122.4352,0.33382,#FF7F00
|
8
|
+
Presidio Heights,37.7868,-122.4538,0.19965,#FF7F00
|
9
|
+
Russian Hill,37.8014,-122.4182,0.34165,#FF7F00
|
10
|
+
Visitacion Valley,37.7144,-122.4113,0.064774,#999999
|
11
|
+
Diamond Heights,37.7423,-122.4423,0.074148,#984EA3
|
12
|
+
Glen Park,37.7378,-122.4316,0.1226,#984EA3
|
13
|
+
Inner Sunset,37.7584,-122.4654,0.18995,#984EA3
|
14
|
+
Lakeshore,37.7225,-122.4885,0.092602,#984EA3
|
15
|
+
Outer Mission,37.7239,-122.4439,0.10242,#984EA3
|
16
|
+
West Of Twin Peaks,37.7373,-122.4589,0.12473,#984EA3
|
17
|
+
Bayview,37.73,-122.3855,0.10309,#377EB8
|
18
|
+
Bernal Heights,37.7399,-122.4169,0.20043,#377EB8
|
19
|
+
Castro,37.7624,-122.4348,0.34092,#377EB8
|
20
|
+
Haight,37.7692,-122.4463,0.29559,#377EB8
|
21
|
+
Mission,37.7589,-122.4153,0.42583,#377EB8
|
22
|
+
Noe,37.7493,-122.433,0.25158,#377EB8
|
23
|
+
Parkside,37.7411,-122.4892,0.092271,#377EB8
|
24
|
+
Potrero,37.7583,-122.393,0.26353,#377EB8
|
25
|
+
South Of Market,37.7764,-122.3994,0.55316,#377EB8
|
26
|
+
Twin Peaks,37.752,-122.45,0.13105,#377EB8
|
27
|
+
Western Addition,37.7804,-122.4332,0.41192,#377EB8
|
28
|
+
Inner Richmond,37.7802,-122.4652,0.21194,#4DAF4A
|
29
|
+
Outer Richmond,37.778,-122.4928,0.18916,#4DAF4A
|
30
|
+
Outer Sunset,37.7553,-122.4938,0.12363,#4DAF4A
|
31
|
+
Seacliff,37.7841,-122.5009,0.091937,#4DAF4A
|
32
|
+
Golden Gate Park,37.7689,-122.4828,0.15941,#4DAF4A
|
33
|
+
Chinatown,37.7941,-122.407,0.24273,#F781BF
|
34
|
+
Downtown,37.7835,-122.4158,0.44235,#F781BF
|
35
|
+
Financial District,37.7915,-122.3988,0.49915,#F781BF
|
36
|
+
Ocean View,37.7178,-122.4622,0.076638,#A65628
|
@@ -0,0 +1,338 @@
|
|
1
|
+
{
|
2
|
+
"nodes": [
|
3
|
+
{ "name": "Myriel", "group": 1 },
|
4
|
+
{ "name": "Napoleon", "group": 1 },
|
5
|
+
{ "name": "Mlle.Baptistine", "group": 1 },
|
6
|
+
{ "name": "Mme.Magloire", "group": 1 },
|
7
|
+
{ "name": "CountessdeLo", "group": 1 },
|
8
|
+
{ "name": "Geborand", "group": 1 },
|
9
|
+
{ "name": "Champtercier", "group": 1 },
|
10
|
+
{ "name": "Cravatte", "group": 1 },
|
11
|
+
{ "name": "Count", "group": 1 },
|
12
|
+
{ "name": "OldMan", "group": 1 },
|
13
|
+
{ "name": "Labarre", "group": 2 },
|
14
|
+
{ "name": "Valjean", "group": 2 },
|
15
|
+
{ "name": "Marguerite", "group": 3 },
|
16
|
+
{ "name": "Mme.deR", "group": 2 },
|
17
|
+
{ "name": "Isabeau", "group": 2 },
|
18
|
+
{ "name": "Gervais", "group": 2 },
|
19
|
+
{ "name": "Tholomyes", "group": 3 },
|
20
|
+
{ "name": "Listolier", "group": 3 },
|
21
|
+
{ "name": "Fameuil", "group": 3 },
|
22
|
+
{ "name": "Blacheville", "group": 3 },
|
23
|
+
{ "name": "Favourite", "group": 3 },
|
24
|
+
{ "name": "Dahlia", "group": 3 },
|
25
|
+
{ "name": "Zephine", "group": 3 },
|
26
|
+
{ "name": "Fantine", "group": 3 },
|
27
|
+
{ "name": "Mme.Thenardier", "group": 4 },
|
28
|
+
{ "name": "Thenardier", "group": 4 },
|
29
|
+
{ "name": "Cosette", "group": 5 },
|
30
|
+
{ "name": "Javert", "group": 4 },
|
31
|
+
{ "name": "Fauchelevent", "group": 0 },
|
32
|
+
{ "name": "Bamatabois", "group": 2 },
|
33
|
+
{ "name": "Perpetue", "group": 3 },
|
34
|
+
{ "name": "Simplice", "group": 2 },
|
35
|
+
{ "name": "Scaufflaire", "group": 2 },
|
36
|
+
{ "name": "Woman1", "group": 2 },
|
37
|
+
{ "name": "Judge", "group": 2 },
|
38
|
+
{ "name": "Champmathieu", "group": 2 },
|
39
|
+
{ "name": "Brevet", "group": 2 },
|
40
|
+
{ "name": "Chenildieu", "group": 2 },
|
41
|
+
{ "name": "Cochepaille", "group": 2 },
|
42
|
+
{ "name": "Pontmercy", "group": 4 },
|
43
|
+
{ "name": "Boulatruelle", "group": 6 },
|
44
|
+
{ "name": "Eponine", "group": 4 },
|
45
|
+
{ "name": "Anzelma", "group": 4 },
|
46
|
+
{ "name": "Woman2", "group": 5 },
|
47
|
+
{ "name": "MotherInnocent", "group": 0 },
|
48
|
+
{ "name": "Gribier", "group": 0 },
|
49
|
+
{ "name": "Jondrette", "group": 7 },
|
50
|
+
{ "name": "Mme.Burgon", "group": 7 },
|
51
|
+
{ "name": "Gavroche", "group": 8 },
|
52
|
+
{ "name": "Gillenormand", "group": 5 },
|
53
|
+
{ "name": "Magnon", "group": 5 },
|
54
|
+
{ "name": "Mlle.Gillenormand", "group": 5 },
|
55
|
+
{ "name": "Mme.Pontmercy", "group": 5 },
|
56
|
+
{ "name": "Mlle.Vaubois", "group": 5 },
|
57
|
+
{ "name": "Lt.Gillenormand", "group": 5 },
|
58
|
+
{ "name": "Marius", "group": 8 },
|
59
|
+
{ "name": "BaronessT", "group": 5 },
|
60
|
+
{ "name": "Mabeuf", "group": 8 },
|
61
|
+
{ "name": "Enjolras", "group": 8 },
|
62
|
+
{ "name": "Combeferre", "group": 8 },
|
63
|
+
{ "name": "Prouvaire", "group": 8 },
|
64
|
+
{ "name": "Feuilly", "group": 8 },
|
65
|
+
{ "name": "Courfeyrac", "group": 8 },
|
66
|
+
{ "name": "Bahorel", "group": 8 },
|
67
|
+
{ "name": "Bossuet", "group": 8 },
|
68
|
+
{ "name": "Joly", "group": 8 },
|
69
|
+
{ "name": "Grantaire", "group": 8 },
|
70
|
+
{ "name": "MotherPlutarch", "group": 0 },
|
71
|
+
{ "name": "Gueulemer", "group": 4 },
|
72
|
+
{ "name": "Babet", "group": 4 },
|
73
|
+
{ "name": "Claquesous", "group": 4 },
|
74
|
+
{ "name": "Montparnasse", "group": 4 },
|
75
|
+
{ "name": "Toussaint", "group": 5 },
|
76
|
+
{ "name": "Child1", "group": 10 },
|
77
|
+
{ "name": "Child2", "group": 10 },
|
78
|
+
{ "name": "Brujon", "group": 4 },
|
79
|
+
{ "name": "Mme.Hucheloup", "group": 8 }
|
80
|
+
],
|
81
|
+
|
82
|
+
"links": [
|
83
|
+
{ "source": 1, "target": 0, "value": 1 },
|
84
|
+
{ "source": 2, "target": 0, "value": 8 },
|
85
|
+
{ "source": 3, "target": 0, "value": 10 },
|
86
|
+
{ "source": 3, "target": 2, "value": 6 },
|
87
|
+
{ "source": 4, "target": 0, "value": 1 },
|
88
|
+
{ "source": 5, "target": 0, "value": 1 },
|
89
|
+
{ "source": 6, "target": 0, "value": 1 },
|
90
|
+
{ "source": 7, "target": 0, "value": 1 },
|
91
|
+
{ "source": 8, "target": 0, "value": 2 },
|
92
|
+
{ "source": 0, "target": 0, "value": 1 },
|
93
|
+
{ "source": 11, "target": 10, "value": 1 },
|
94
|
+
{ "source": 11, "target": 3, "value": 3 },
|
95
|
+
{ "source": 11, "target": 2, "value": 3 },
|
96
|
+
{ "source": 11, "target": 0, "value": 5 },
|
97
|
+
{ "source": 12, "target": 11, "value": 1 },
|
98
|
+
{ "source": 13, "target": 11, "value": 1 },
|
99
|
+
{ "source": 14, "target": 11, "value": 1 },
|
100
|
+
{ "source": 15, "target": 11, "value": 1 },
|
101
|
+
{ "source": 17, "target": 16, "value": 4 },
|
102
|
+
{ "source": 18, "target": 16, "value": 4 },
|
103
|
+
{ "source": 18, "target": 17, "value": 4 },
|
104
|
+
{ "source": 19, "target": 16, "value": 4 },
|
105
|
+
{ "source": 19, "target": 17, "value": 4 },
|
106
|
+
{ "source": 19, "target": 18, "value": 4 },
|
107
|
+
{ "source": 20, "target": 16, "value": 3 },
|
108
|
+
{ "source": 20, "target": 17, "value": 3 },
|
109
|
+
{ "source": 20, "target": 18, "value": 3 },
|
110
|
+
{ "source": 20, "target": 19, "value": 4 },
|
111
|
+
{ "source": 21, "target": 16, "value": 3 },
|
112
|
+
{ "source": 21, "target": 17, "value": 3 },
|
113
|
+
{ "source": 21, "target": 18, "value": 3 },
|
114
|
+
{ "source": 21, "target": 19, "value": 3 },
|
115
|
+
{ "source": 21, "target": 20, "value": 5 },
|
116
|
+
{ "source": 22, "target": 16, "value": 3 },
|
117
|
+
{ "source": 22, "target": 17, "value": 3 },
|
118
|
+
{ "source": 22, "target": 18, "value": 3 },
|
119
|
+
{ "source": 22, "target": 19, "value": 3 },
|
120
|
+
{ "source": 22, "target": 20, "value": 4 },
|
121
|
+
{ "source": 22, "target": 21, "value": 4 },
|
122
|
+
{ "source": 23, "target": 16, "value": 3 },
|
123
|
+
{ "source": 23, "target": 17, "value": 3 },
|
124
|
+
{ "source": 23, "target": 18, "value": 3 },
|
125
|
+
{ "source": 23, "target": 19, "value": 3 },
|
126
|
+
{ "source": 23, "target": 20, "value": 4 },
|
127
|
+
{ "source": 23, "target": 21, "value": 4 },
|
128
|
+
{ "source": 23, "target": 22, "value": 4 },
|
129
|
+
{ "source": 23, "target": 12, "value": 2 },
|
130
|
+
{ "source": 23, "target": 11, "value": 0 },
|
131
|
+
{ "source": 24, "target": 23, "value": 2 },
|
132
|
+
{ "source": 24, "target": 11, "value": 7 },
|
133
|
+
{ "source": 25, "target": 24, "value": 13 },
|
134
|
+
{ "source": 25, "target": 23, "value": 1 },
|
135
|
+
{ "source": 25, "target": 11, "value": 12 },
|
136
|
+
{ "source": 26, "target": 24, "value": 4 },
|
137
|
+
{ "source": 26, "target": 11, "value": 31 },
|
138
|
+
{ "source": 26, "target": 16, "value": 1 },
|
139
|
+
{ "source": 26, "target": 25, "value": 1 },
|
140
|
+
{ "source": 27, "target": 11, "value": 17 },
|
141
|
+
{ "source": 27, "target": 23, "value": 5 },
|
142
|
+
{ "source": 27, "target": 25, "value": 5 },
|
143
|
+
{ "source": 27, "target": 24, "value": 1 },
|
144
|
+
{ "source": 27, "target": 26, "value": 1 },
|
145
|
+
{ "source": 28, "target": 11, "value": 8 },
|
146
|
+
{ "source": 28, "target": 27, "value": 1 },
|
147
|
+
{ "source": 29, "target": 23, "value": 1 },
|
148
|
+
{ "source": 29, "target": 27, "value": 1 },
|
149
|
+
{ "source": 29, "target": 11, "value": 2 },
|
150
|
+
{ "source": 30, "target": 23, "value": 1 },
|
151
|
+
{ "source": 31, "target": 30, "value": 2 },
|
152
|
+
{ "source": 31, "target": 11, "value": 3 },
|
153
|
+
{ "source": 31, "target": 23, "value": 2 },
|
154
|
+
{ "source": 31, "target": 27, "value": 1 },
|
155
|
+
{ "source": 32, "target": 11, "value": 1 },
|
156
|
+
{ "source": 33, "target": 11, "value": 2 },
|
157
|
+
{ "source": 33, "target": 27, "value": 1 },
|
158
|
+
{ "source": 34, "target": 11, "value": 3 },
|
159
|
+
{ "source": 34, "target": 29, "value": 2 },
|
160
|
+
{ "source": 35, "target": 11, "value": 3 },
|
161
|
+
{ "source": 35, "target": 34, "value": 3 },
|
162
|
+
{ "source": 35, "target": 29, "value": 2 },
|
163
|
+
{ "source": 36, "target": 34, "value": 2 },
|
164
|
+
{ "source": 36, "target": 35, "value": 2 },
|
165
|
+
{ "source": 36, "target": 11, "value": 2 },
|
166
|
+
{ "source": 36, "target": 29, "value": 1 },
|
167
|
+
{ "source": 37, "target": 34, "value": 2 },
|
168
|
+
{ "source": 37, "target": 35, "value": 2 },
|
169
|
+
{ "source": 37, "target": 36, "value": 2 },
|
170
|
+
{ "source": 37, "target": 11, "value": 2 },
|
171
|
+
{ "source": 37, "target": 29, "value": 1 },
|
172
|
+
{ "source": 38, "target": 34, "value": 2 },
|
173
|
+
{ "source": 38, "target": 35, "value": 2 },
|
174
|
+
{ "source": 38, "target": 36, "value": 2 },
|
175
|
+
{ "source": 38, "target": 37, "value": 2 },
|
176
|
+
{ "source": 38, "target": 11, "value": 2 },
|
177
|
+
{ "source": 38, "target": 29, "value": 1 },
|
178
|
+
{ "source": 39, "target": 25, "value": 1 },
|
179
|
+
{ "source": 40, "target": 25, "value": 1 },
|
180
|
+
{ "source": 41, "target": 24, "value": 2 },
|
181
|
+
{ "source": 41, "target": 25, "value": 3 },
|
182
|
+
{ "source": 42, "target": 41, "value": 2 },
|
183
|
+
{ "source": 42, "target": 25, "value": 2 },
|
184
|
+
{ "source": 42, "target": 24, "value": 1 },
|
185
|
+
{ "source": 43, "target": 11, "value": 3 },
|
186
|
+
{ "source": 43, "target": 26, "value": 1 },
|
187
|
+
{ "source": 43, "target": 27, "value": 1 },
|
188
|
+
{ "source": 44, "target": 28, "value": 3 },
|
189
|
+
{ "source": 44, "target": 11, "value": 1 },
|
190
|
+
{ "source": 45, "target": 28, "value": 2 },
|
191
|
+
{ "source": 47, "target": 46, "value": 1 },
|
192
|
+
{ "source": 48, "target": 47, "value": 2 },
|
193
|
+
{ "source": 48, "target": 25, "value": 1 },
|
194
|
+
{ "source": 48, "target": 27, "value": 1 },
|
195
|
+
{ "source": 48, "target": 11, "value": 1 },
|
196
|
+
{ "source": 49, "target": 26, "value": 3 },
|
197
|
+
{ "source": 49, "target": 11, "value": 2 },
|
198
|
+
{ "source": 50, "target": 49, "value": 1 },
|
199
|
+
{ "source": 50, "target": 24, "value": 1 },
|
200
|
+
{ "source": 51, "target": 49, "value": 0 },
|
201
|
+
{ "source": 51, "target": 26, "value": 2 },
|
202
|
+
{ "source": 51, "target": 11, "value": 2 },
|
203
|
+
{ "source": 52, "target": 51, "value": 1 },
|
204
|
+
{ "source": 52, "target": 39, "value": 1 },
|
205
|
+
{ "source": 53, "target": 51, "value": 1 },
|
206
|
+
{ "source": 54, "target": 51, "value": 2 },
|
207
|
+
{ "source": 54, "target": 49, "value": 1 },
|
208
|
+
{ "source": 54, "target": 26, "value": 1 },
|
209
|
+
{ "source": 55, "target": 51, "value": 6 },
|
210
|
+
{ "source": 55, "target": 49, "value": 12 },
|
211
|
+
{ "source": 55, "target": 39, "value": 1 },
|
212
|
+
{ "source": 55, "target": 54, "value": 1 },
|
213
|
+
{ "source": 55, "target": 26, "value": 21 },
|
214
|
+
{ "source": 55, "target": 11, "value": 19 },
|
215
|
+
{ "source": 55, "target": 16, "value": 1 },
|
216
|
+
{ "source": 55, "target": 25, "value": 2 },
|
217
|
+
{ "source": 55, "target": 41, "value": 5 },
|
218
|
+
{ "source": 55, "target": 48, "value": 4 },
|
219
|
+
{ "source": 56, "target": 49, "value": 1 },
|
220
|
+
{ "source": 56, "target": 55, "value": 1 },
|
221
|
+
{ "source": 57, "target": 55, "value": 1 },
|
222
|
+
{ "source": 57, "target": 41, "value": 1 },
|
223
|
+
{ "source": 57, "target": 48, "value": 1 },
|
224
|
+
{ "source": 58, "target": 55, "value": 7 },
|
225
|
+
{ "source": 58, "target": 48, "value": 7 },
|
226
|
+
{ "source": 58, "target": 27, "value": 6 },
|
227
|
+
{ "source": 58, "target": 57, "value": 1 },
|
228
|
+
{ "source": 58, "target": 11, "value": 4 },
|
229
|
+
{ "source": 59, "target": 58, "value": 15 },
|
230
|
+
{ "source": 59, "target": 55, "value": 5 },
|
231
|
+
{ "source": 59, "target": 48, "value": 6 },
|
232
|
+
{ "source": 59, "target": 57, "value": 2 },
|
233
|
+
{ "source": 60, "target": 48, "value": 1 },
|
234
|
+
{ "source": 60, "target": 58, "value": 4 },
|
235
|
+
{ "source": 60, "target": 59, "value": 2 },
|
236
|
+
{ "source": 61, "target": 48, "value": 2 },
|
237
|
+
{ "source": 61, "target": 58, "value": 6 },
|
238
|
+
{ "source": 61, "target": 60, "value": 2 },
|
239
|
+
{ "source": 61, "target": 59, "value": 5 },
|
240
|
+
{ "source": 61, "target": 57, "value": 1 },
|
241
|
+
{ "source": 61, "target": 55, "value": 1 },
|
242
|
+
{ "source": 62, "target": 55, "value": 0 },
|
243
|
+
{ "source": 62, "target": 58, "value": 17 },
|
244
|
+
{ "source": 62, "target": 59, "value": 13 },
|
245
|
+
{ "source": 62, "target": 48, "value": 7 },
|
246
|
+
{ "source": 62, "target": 57, "value": 2 },
|
247
|
+
{ "source": 62, "target": 41, "value": 1 },
|
248
|
+
{ "source": 62, "target": 61, "value": 6 },
|
249
|
+
{ "source": 62, "target": 60, "value": 3 },
|
250
|
+
{ "source": 63, "target": 59, "value": 5 },
|
251
|
+
{ "source": 63, "target": 48, "value": 5 },
|
252
|
+
{ "source": 63, "target": 62, "value": 6 },
|
253
|
+
{ "source": 63, "target": 57, "value": 2 },
|
254
|
+
{ "source": 63, "target": 58, "value": 4 },
|
255
|
+
{ "source": 63, "target": 61, "value": 3 },
|
256
|
+
{ "source": 63, "target": 60, "value": 2 },
|
257
|
+
{ "source": 63, "target": 55, "value": 1 },
|
258
|
+
{ "source": 64, "target": 55, "value": 5 },
|
259
|
+
{ "source": 64, "target": 62, "value": 12 },
|
260
|
+
{ "source": 64, "target": 48, "value": 5 },
|
261
|
+
{ "source": 64, "target": 63, "value": 4 },
|
262
|
+
{ "source": 64, "target": 58, "value": 10 },
|
263
|
+
{ "source": 64, "target": 61, "value": 6 },
|
264
|
+
{ "source": 64, "target": 60, "value": 2 },
|
265
|
+
{ "source": 64, "target": 59, "value": 0 },
|
266
|
+
{ "source": 64, "target": 57, "value": 1 },
|
267
|
+
{ "source": 64, "target": 11, "value": 1 },
|
268
|
+
{ "source": 65, "target": 63, "value": 5 },
|
269
|
+
{ "source": 65, "target": 64, "value": 7 },
|
270
|
+
{ "source": 65, "target": 48, "value": 3 },
|
271
|
+
{ "source": 65, "target": 62, "value": 5 },
|
272
|
+
{ "source": 65, "target": 58, "value": 5 },
|
273
|
+
{ "source": 65, "target": 61, "value": 5 },
|
274
|
+
{ "source": 65, "target": 60, "value": 2 },
|
275
|
+
{ "source": 65, "target": 59, "value": 5 },
|
276
|
+
{ "source": 65, "target": 57, "value": 1 },
|
277
|
+
{ "source": 65, "target": 55, "value": 2 },
|
278
|
+
{ "source": 66, "target": 64, "value": 3 },
|
279
|
+
{ "source": 66, "target": 58, "value": 3 },
|
280
|
+
{ "source": 66, "target": 59, "value": 1 },
|
281
|
+
{ "source": 66, "target": 62, "value": 2 },
|
282
|
+
{ "source": 66, "target": 65, "value": 2 },
|
283
|
+
{ "source": 66, "target": 48, "value": 1 },
|
284
|
+
{ "source": 66, "target": 63, "value": 1 },
|
285
|
+
{ "source": 66, "target": 61, "value": 1 },
|
286
|
+
{ "source": 66, "target": 60, "value": 1 },
|
287
|
+
{ "source": 67, "target": 57, "value": 3 },
|
288
|
+
{ "source": 68, "target": 25, "value": 5 },
|
289
|
+
{ "source": 68, "target": 11, "value": 1 },
|
290
|
+
{ "source": 68, "target": 24, "value": 1 },
|
291
|
+
{ "source": 68, "target": 27, "value": 1 },
|
292
|
+
{ "source": 68, "target": 48, "value": 1 },
|
293
|
+
{ "source": 68, "target": 41, "value": 1 },
|
294
|
+
{ "source": 69, "target": 25, "value": 6 },
|
295
|
+
{ "source": 69, "target": 68, "value": 6 },
|
296
|
+
{ "source": 69, "target": 11, "value": 1 },
|
297
|
+
{ "source": 69, "target": 24, "value": 1 },
|
298
|
+
{ "source": 69, "target": 27, "value": 2 },
|
299
|
+
{ "source": 69, "target": 48, "value": 1 },
|
300
|
+
{ "source": 69, "target": 41, "value": 1 },
|
301
|
+
{ "source": 70, "target": 25, "value": 4 },
|
302
|
+
{ "source": 70, "target": 69, "value": 4 },
|
303
|
+
{ "source": 70, "target": 68, "value": 4 },
|
304
|
+
{ "source": 70, "target": 11, "value": 1 },
|
305
|
+
{ "source": 70, "target": 24, "value": 1 },
|
306
|
+
{ "source": 70, "target": 27, "value": 1 },
|
307
|
+
{ "source": 70, "target": 41, "value": 1 },
|
308
|
+
{ "source": 70, "target": 58, "value": 1 },
|
309
|
+
{ "source": 71, "target": 27, "value": 1 },
|
310
|
+
{ "source": 71, "target": 69, "value": 2 },
|
311
|
+
{ "source": 71, "target": 68, "value": 2 },
|
312
|
+
{ "source": 71, "target": 70, "value": 2 },
|
313
|
+
{ "source": 71, "target": 11, "value": 1 },
|
314
|
+
{ "source": 71, "target": 48, "value": 1 },
|
315
|
+
{ "source": 71, "target": 41, "value": 1 },
|
316
|
+
{ "source": 71, "target": 25, "value": 1 },
|
317
|
+
{ "source": 72, "target": 26, "value": 2 },
|
318
|
+
{ "source": 72, "target": 27, "value": 1 },
|
319
|
+
{ "source": 72, "target": 11, "value": 1 },
|
320
|
+
{ "source": 73, "target": 48, "value": 2 },
|
321
|
+
{ "source": 74, "target": 48, "value": 2 },
|
322
|
+
{ "source": 74, "target": 73, "value": 3 },
|
323
|
+
{ "source": 75, "target": 69, "value": 3 },
|
324
|
+
{ "source": 75, "target": 68, "value": 3 },
|
325
|
+
{ "source": 75, "target": 25, "value": 3 },
|
326
|
+
{ "source": 75, "target": 48, "value": 1 },
|
327
|
+
{ "source": 75, "target": 41, "value": 1 },
|
328
|
+
{ "source": 75, "target": 70, "value": 1 },
|
329
|
+
{ "source": 75, "target": 71, "value": 1 },
|
330
|
+
{ "source": 76, "target": 64, "value": 1 },
|
331
|
+
{ "source": 76, "target": 65, "value": 1 },
|
332
|
+
{ "source": 76, "target": 66, "value": 1 },
|
333
|
+
{ "source": 76, "target": 63, "value": 1 },
|
334
|
+
{ "source": 76, "target": 62, "value": 1 },
|
335
|
+
{ "source": 76, "target": 48, "value": 1 },
|
336
|
+
{ "source": 76, "target": 58, "value": 1 }
|
337
|
+
]
|
338
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
(function(d3) {
|
2
|
+
d3.graph = function (graph) {
|
3
|
+
var graph = graph ? graph : {},
|
4
|
+
nodes = [],
|
5
|
+
links = [];
|
6
|
+
|
7
|
+
graph.description = function() {
|
8
|
+
return "d3.graph with " + nodes.length + " nodes and " + links.length + " links";
|
9
|
+
};
|
10
|
+
|
11
|
+
graph.nodes = function(x) {
|
12
|
+
if (!arguments.length) return nodes;
|
13
|
+
nodes = x;
|
14
|
+
return this;
|
15
|
+
};
|
16
|
+
|
17
|
+
graph.links = function(x) {
|
18
|
+
if (!arguments.length) return links;
|
19
|
+
links = x;
|
20
|
+
return this;
|
21
|
+
};
|
22
|
+
|
23
|
+
graph.matrix = function(x) {
|
24
|
+
if (!arguments.length) return d3.graph.listToMatrix(links);
|
25
|
+
links = d3.graph.matrixToList(x);
|
26
|
+
// TODO nodes
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
|
30
|
+
graph.traverse = function() {
|
31
|
+
var traversal = {},
|
32
|
+
selected = {}, // selected entities
|
33
|
+
selected_type;
|
34
|
+
|
35
|
+
traversal.filter = function(f) {
|
36
|
+
// only works on nodes
|
37
|
+
if (!arguments.length) return this;
|
38
|
+
selected = nodes.filter(f);
|
39
|
+
return this;
|
40
|
+
};
|
41
|
+
|
42
|
+
traversal.value = function(x) {
|
43
|
+
if (!arguments.length) {
|
44
|
+
// reset selection
|
45
|
+
var result = selected;
|
46
|
+
selected_type = false;
|
47
|
+
selected = {};
|
48
|
+
return result;
|
49
|
+
}
|
50
|
+
selected = x;
|
51
|
+
return this;
|
52
|
+
};
|
53
|
+
|
54
|
+
traversal.selected_type = function(x) {
|
55
|
+
if (!arguments.length) return selected_type;
|
56
|
+
selected_type = x;
|
57
|
+
return this;
|
58
|
+
};
|
59
|
+
|
60
|
+
return traversal;
|
61
|
+
};
|
62
|
+
|
63
|
+
return graph;
|
64
|
+
};
|
65
|
+
|
66
|
+
// http://opendatastructures.org/ods-cpp/12_1_Representing_Graph_Mat.html
|
67
|
+
d3.graph.matrix = function(matrix) {
|
68
|
+
var matrix = matrix ? matrix : [];
|
69
|
+
|
70
|
+
var matrixObj = function(i,j) {
|
71
|
+
return matrix[i][j];
|
72
|
+
};
|
73
|
+
|
74
|
+
matrixObj.description = function() {
|
75
|
+
return "A " + matrix.length +
|
76
|
+
" by " + matrix.length +
|
77
|
+
" adjacency matrix";
|
78
|
+
};
|
79
|
+
|
80
|
+
matrixObj.data = matrixObj.matrix = function(x) {
|
81
|
+
if (!arguments.length) return matrix;
|
82
|
+
matrix = x;
|
83
|
+
return this;
|
84
|
+
};
|
85
|
+
|
86
|
+
matrixObj.set = matrixObj.addEdge = function(i,j,value) {
|
87
|
+
matrix[i][j] = value ? value : 1;
|
88
|
+
return this;
|
89
|
+
};
|
90
|
+
|
91
|
+
matrixObj.remove = matrixObj.removeEdge = function(i,j) {
|
92
|
+
matrix[i][j] = 0;
|
93
|
+
return this;
|
94
|
+
};
|
95
|
+
|
96
|
+
matrixObj.has = matrixObj.hasEdge = function(i,j) {
|
97
|
+
return !!matrix[i][j];
|
98
|
+
};
|
99
|
+
|
100
|
+
matrixObj.outE = matrixObj.outEdges = function(i) {
|
101
|
+
var edges = [],
|
102
|
+
n = matrix.length;
|
103
|
+
var j = -1; while (++j < n) {
|
104
|
+
if (matrix[i][j]) edges.push(j);
|
105
|
+
}
|
106
|
+
return edges;
|
107
|
+
};
|
108
|
+
|
109
|
+
matrixObj.inE = matrixObj.inEdges = function(i) {
|
110
|
+
var edges = [],
|
111
|
+
n = matrix.length;
|
112
|
+
var j = -1; while (++j < n) {
|
113
|
+
if (matrix[j][i]) edges.push(j);
|
114
|
+
}
|
115
|
+
return edges;
|
116
|
+
};
|
117
|
+
|
118
|
+
return matrixObj;
|
119
|
+
};
|
120
|
+
|
121
|
+
d3.graph.listToMatrix = function(links) {
|
122
|
+
var matrix = [],
|
123
|
+
n = links.length,
|
124
|
+
max = d3.max(links, function(d) {
|
125
|
+
return d3.max([d.source, d.target]);
|
126
|
+
});
|
127
|
+
|
128
|
+
// zero matrix
|
129
|
+
var i = -1; while (++i <= max) {
|
130
|
+
matrix[i] = [];
|
131
|
+
var j = -1; while (++j <= max) {
|
132
|
+
matrix[i][j] = 0;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
i = -1; while (++i < n) {
|
137
|
+
matrix[ links[i].source ][ links[i].target ] = links[i].value;
|
138
|
+
}
|
139
|
+
|
140
|
+
return matrix;
|
141
|
+
};
|
142
|
+
|
143
|
+
d3.graph.matrixToList = function(matrix) {
|
144
|
+
var links = [],
|
145
|
+
n = matrix.length;
|
146
|
+
|
147
|
+
var i = -1; while (++i < n) {
|
148
|
+
var j = -1; while (++j < n) {
|
149
|
+
links.push({
|
150
|
+
source: i,
|
151
|
+
target: j,
|
152
|
+
value: matrix[i][j]
|
153
|
+
});
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
return links;
|
158
|
+
};
|
159
|
+
|
160
|
+
|
161
|
+
})(d3);
|