Posts

Showing posts from August, 2015

d3 Collapsible tree vertical

Image
I have just finished playing around with M. Bostoc's collapsible tree. Here is a link to his original version. This tree has a right to left orientation, and I wanted a top to bottom. He does provide an option for tree orientations here .  Sources showing how to vertically orient it online, showcase a very simple non interactive tree.  SO i just changed his original code a bit, just small x, y tweaks (mainly the diagonal and the node transitions). Quiet simple actually. And this is what it looks like.  Also including the code and the hierarchical JSON object used.  Hope this helps. :)

Weave Analyst note #2

Note # 2 Purpose of these notes is to serve as personal logs as i continue modifying the Weave Analyst. Weave Analyst Using the Webstorm 10 IDE. Trying to deploy a web application. Webstorm uses its own built-in server port, but I wanted to deploy it to the Tomcat server. Quick fix : move the development folder in Tomcat >> webapps >> Root >> Git updates from this new directory TODO : write build files and deploy to the server. 

Weave Analyst Notes : #1

Weave Analyst Notes : #1 Purpose of these notes is to serve as personal logs as i continue modifying the Weave Analyst. Weave Analyst ng-if VS ng-show So my angular app was taking longer than i expected it to load yesterday. It was a tiny app, not more than say 50 lines. Turns out i was running into an issue with ng-if. ng-if does something depending on the true or false evaluation of its expression. Turns out ng-if removes or recreates an element from the DOM, and recreates the DOM tree from scratch. Every removal destroys the old scope and every recreation creates a new one. Not good if ng-model and ng-if together are inheriting something from the parent scope. Not good at al!! On the other hand ng-show and ng-hide simply modify the CSS(namely the display property) of the DOM element. The element is never destroyed. Additional documentation :  ng-If