score:0

Accepted answer

You can retreive JSON data using d3 as follows;

d3.json("/path/to/json", function(d) {
    //rendering code
}

and then, inside the callback function (in place of rendering code) you can access the JSON data using the variable "d".

The following summerizes the general procedure to follow after retreiving the data;

//Create a svg
svg = d3.select("selector_to_some_DOM_element").append("svg");

//Then append text for each data JSON entry
svg.selectAll(".yourClassNameHere")
        .data(d) //received data
        .enter()
        .text(function (d) { //add some text
            //using OccurrenceFrequency
            return d.OccurrenceFrequency
        });

You can read more detailed d3 JSON data management at http://pothibo.com/2013/09/d3-js-how-to-handle-dynamic-json-data/


Related Query