Accepted answer

D3 has its own json getting function for completeness of the framework but you don't have to use it. You could try your d3 chart with the jQuery $.getJSON and it should work. This is what I do since most of my development is done using jQuery.

As for your example, the d3.json semantics is exactly the same as the $.getJSON. It is asynchronous call in which the function is called after the data is retrieved. Try something like this:

  function (jsondata) {

    // create the chart here with
    // the returned data


    var data = { return d.Value; });


Related Query

More Query from same tag