{"id":1378,"date":"2012-06-23T06:38:24","date_gmt":"2012-06-23T06:38:24","guid":{"rendered":"http:\/\/truelogic.org\/wordpress\/?p=1378"},"modified":"2014-05-13T05:27:06","modified_gmt":"2014-05-13T05:27:06","slug":"amazing-visualization-models-for-your-web-apps-using-arbor-js","status":"publish","type":"post","link":"https:\/\/truelogic.org\/wordpress\/2012\/06\/23\/amazing-visualization-models-for-your-web-apps-using-arbor-js\/","title":{"rendered":"Amazing visualization models for your web apps using Arbor JS"},"content":{"rendered":"<p>Arbor.js is a jQuery based library which lets you depict information in the form of nodes and trees which move dynamically responding to mouse movements. It works in browsers which support the full HTML5 stack. As far as I know, it works on all the modern browsers except for IE (maybe it works with the latest one, it wasnt working in 2011).<\/p>\n<p><a href=\"https:\/\/truelogic.org\/wordpress\/2012\/06\/23\/amazing-visualization-models-for-your-web-apps-using-arbor-js\/arbor\/\" rel=\"attachment wp-att-1379\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1379\" title=\"arbor\" src=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2012\/06\/arbor.jpg\" alt=\"\" width=\"1014\" height=\"619\" srcset=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2012\/06\/arbor.jpg 1014w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2012\/06\/arbor-300x183.jpg 300w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/a><\/p>\n<p>The image above is a screenshot from a small demo which I made with the data coming from a php file. It shows the breakup of countries based on their alphabetical names.<\/p>\n<p>Most of the heavy-lifting is done by the Arbor library. All you need to understand is how the various objects in arbor.js work.<\/p>\n<p>Arbor uses the laws of physics to show and move the model. In their own words:<\/p>\n<p><span style=\"color: #333399;\"><em>Arbor is a graph visualization library built with web workers and jQuery. Rather than trying to be an all-encompassing framework, arbor provides an efficient, force-directed layout algorithm plus abstractions for graph organization and screen refresh handling.<\/em><\/span><\/p>\n<p><span style=\"color: #333399;\"><em>It leaves the actual screen-drawing to you. This means you can use it with canvas, <strong>SVG<\/strong>, or even positioned <strong>HTML<\/strong> elements; whatever display approach is appropriate for your project and your performance needs.<\/em><\/span><\/p>\n<p><span style=\"color: #333399;\"><em>As a result, the code you write with it can be focused on the things that make your project unique \u2013 the graph data and your visual style \u2013 rather than spending time on the physics math that makes the layouts possible<\/em><\/span><\/p>\n<h1 style=\"text-align: center;\"><a title=\"Arbor demo\" href=\"http:\/\/truelogic.org\/arbor_country\/\" target=\"_blank\"><span style=\"color: #000000;\">Check out my demo here<\/span> (May not work in IE but give it a try)<\/a><\/h1>\n<h1 style=\"text-align: center;\"><a title=\"Arbor website\" href=\"http:\/\/arborjs.org\/\" target=\"_blank\"><strong>For downloading the arbor.js library and their documentation click here<\/strong><\/a><\/h1>\n<p>If you are interested in getting the source for this demo, please let me know. I can make it available as part of the blog post.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Arbor.js is a jQuery based library which lets you depict information in the form of nodes and trees which move dynamically responding to mouse movements. <a class=\"mh-excerpt-more\" href=\"https:\/\/truelogic.org\/wordpress\/2012\/06\/23\/amazing-visualization-models-for-your-web-apps-using-arbor-js\/\" title=\"Amazing visualization models for your web apps using Arbor JS\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1379,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,18],"tags":[],"class_list":["post-1378","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apachephp","category-javascript"],"_links":{"self":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/comments?post=1378"}],"version-history":[{"count":10,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1378\/revisions"}],"predecessor-version":[{"id":2046,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1378\/revisions\/2046"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media\/1379"}],"wp:attachment":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media?parent=1378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/categories?post=1378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/tags?post=1378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}