javascript - Reading values from Json -
https://plnkr.co/edit/zvybaoutennkargifmky?p=preview
i have added working fiddle.i want read size values flare.json
file,saved in fiddle , find maximum , minimum size values. have tried using json.parse
method in index.html
not working.i beginner visualization.
here's fork of plnkr: https://plnkr.co/edit/pxpeur2cgyzxvwswx9ef
i initialized variables this:
var minsize=infinity, maxsize=-infinity;
and added these conditionals recurse
function:
if(node.size<minsize) minsize=node.size; if(node.size>maxsize) maxsize=node.size;
i expect there better way this, , hope you'll share once find it.
Comments
Post a Comment