Sha256: a1c26f1a7cb8d4b9d024112e619ab3d04f49449c51c1fa6d0caa998b7d6c5bbd
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
<!DOCTYPE html> <html> <head> <title>Association graph</title> <script type="text/javascript" src="https://www.graphdracula.net/js/raphael-min.js"></script> <script type="text/javascript" src="https://www.graphdracula.net/js/graffle.js"></script> <script type="text/javascript" src="https://www.graphdracula.net/js/graph.js"></script> <script type="text/javascript"> var redraw; var height = 600; var width = 1000; window.onload = function() { var g = new Graph(); <% @edges.each do |edge| %> g.addEdge('<%= edge.first %>', '<%= edge.last %>'); <% end %> var layouter = new Graph.Layout.Spring(g); layouter.layout(); var renderer = new Graph.Renderer.Raphael('canvas', g, width, height); renderer.draw(); redraw = function() { layouter.layout(); renderer.draw(); }; }; </script> </head> <body> <div id="canvas"></div> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom_sql_graph-0.2.0 | lib/rom_sql_graph/templates/graph.erb |