Better HN
topnewbestaskshowjobs
Log inSign up

shseham

5 karma · joined Feb 19, 2015 (11y ago) · 5 submissions

Submissions

1.

Visualization to show how the english premier league table changed in 2015-2016(maheshsenni.github.io ↗)

1 points · by shseham · 10y ago · discuss

2.

Creating a Module Bundler with Hot Module Replacement(medium.com ↗)

1 points · by shseham · 10y ago · discuss

comment 10y ago · link · parent

I am not giving up on D3. I just wanted to point out the limitation in the default tree layout and the complexity around it. In fact there was a discussion about variable sized nodes in GH and a plugin is in place now. Might be useful for you if you are heading down the same path - https://github.com/mbostock/d3/issues/1992

comment 10y ago · link · parent

It is awesome. Thanks for sharing. Wish I had this a year before. We ended up using this library - https://github.com/cpettitt/dagre

comment 10y ago · link · parent

How complex would it be to do it without taking in the min/max width parameters? It soon becomes insanely complex when you want draw a graph with nodes of variable width and height. Say for example if you wanted to add text inside the boxes and you want the box width to be determined based on the text. I have previously tried to adapt the default tree layout algorithm (Reingold–Tilford?!) in D3 and failed miserably. http://bl.ocks.org/mbostock/4339184