javascript - How to extract json data of the selected nodes using d3.js? -
i new in d3.js , using simple molecule d3 http://bl.ocks.org/mbostock/3037015 . first question how can select multiple nodes of molecule structure? sec how can extract name , size data(that stored in json file) of selected nodes?
take @ small extended version of posted link.
clicking node alter color of node now. can alter in way need it. set additional property or class , later on check items have such property/class. or save clicked items in json , check if exists in list before adding it.
well in extended version. if click node atom , size printed on top left side.
javascript json html5 d3.js
No comments:
Post a Comment