score:0
Ok, found my problem, although I had to use javascript ajax queries. I was right to think the data I was recuperating throught my ajax query was not in the right format. I did:
var data = JSON.parse(this.response); //Instead of this.responseText
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var data = JSON.parse(this.response);
loadGraph(data);
}
};
xhttp.open("GET", url, true);
xhttp.send();
Source: stackoverflow.com
Related Query
- D3 fetch from django serialized model json returning blank array
- Returning array from d3.json()
- Retrieving Keys from JSON Array key-value pair dynamically - Javascript
- How to load data from an internal JSON array rather than from an external resource / file for a collapsible tree in d3.js?
- d3.js - max and min value from json data which has array of values
- How to get the specific JSON array from a value in that array
- How to fetch data from json file to draw a dynamic graph by using d3.js
- calculate the date diff in javascript from JSON array
- D3.js moving from tsv to json with nested array
- How do you call data from nested JSON array using d3?
- sending json data from django to d3.js
- c3js Stacked Bar chart from json array
- Displaying coordinates in D3 from JSON array
- JSON data from Django to D3 graph
- how to access data from nested json array D3
- Extract array from one json variable
- Retrieving keys from a json array file(dynamically) and use it for d3js functions
- modifying d3.js donut chart to read from json array
- How to Call a Function From a JSON Array
- How to render table from JSON array elemnts using d3
- render bar charts in javascript using svg and 2D array from json
- creating D3 Word Cloud by using an array of json objects instead of reading from json file
- Fetch d3.js array from a url
- D3 get JSON data from mysql always returning undefined
- consolidating data from a json in a new array and drawing shapes with it using d3.js
- consolidating data from a json in a new array and drawing shapes with it using d3.js
- D3js take data from an array instead of a file
- Loading D3.js data from a simple JSON string
- Updating links on a force directed graph from dynamic json data
- Passing data from Django to D3
More Query from same tag
- Using d3 selection.join to create a new line each time
- Click event in not working on D3 US Map, and mouseover event is working on particular states only
- how to create separate bar chart with JSON array set?
- D3 Geo Projection and Blobs
- Render D3 graph from a string of JSON instead of a JSON file
- OpenSeaDragon with D3 svg-overlay draggable elements
- d3 stacked bar chart issue
- Data structure returned by d3.csvParse
- Select specific elements and change style of one
- d3 selection append element inside another
- Changing the colour of the node in Sankey Diagram using D3.js library.
- D3 JS Layout Tree connected to CrossFilter
- How should I replace this .selectAll necessary before .data in D3?
- Why do GeoJSON features appear like a negative photo of the features themselves?
- directive and d3, very first transition being ignored
- D3 Alternate Calendar - Coloring by Bin
- using dynamic list data in d3.js
- d3.js (v3) enter() not working in bar chart update
- d3.js - use brush over a sequence of rectangles
- implement General Update Pattern for d3.js force layout
- Embedding d3.js graph in a web2py bootstrap page
- d3 Force: Making sense of data binding
- d3 - Get pixel width between two numbers on line chart x-axis (to set a background <rect> width)
- D3JS Plotting Line Graph From Array Data (Data is undefined error)
- d3.js y-axis min and max value range display
- d3.js Why are axis and data slightly offset?
- Multi-page Flex Dashboard plots with incorrect zoom levels
- d3 js how to select from selection
- collapse specific nodes on load in d3 tree
- How to replace d3.js path element rather than draw another one?