javascript - How to embbed data in d3 script? -


i'm looking @ this: http://bl.ocks.org/mbostock/4063550

i want embed json data inside script opposed using d3's internal function. tried variety of things assigning data var etc. doesn't seem work.

how do this, example in particular?

in general, assign contents of json variable, so:

var json = {...}; 

in case in particular, have here.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -