score:1
Accepted answer
looks like in var treedatajson = "filtered_tree.json";
when it worked you were passing in the filename, and in var treedatajson = JSON.parse(window.SESSION.filtered_tree);
you were passing in the json data. What is the next line where you use treedatajson
? You are probably looking for a filename there instead of the parsed data.
... or maybe you should create a php endpoint that serves the session data as json... something like
<?php
// filtered-tree.php
session_start()
header('Content-Type: application/json');
echo json_encode($_SESSION['TREE']); // or whatever the key is
and then in js
var treedatajson = "filtered-tree.php";
Source: stackoverflow.com
Related Query
- use a php SESSION string for d3.js tree JSON instead of .json file
- D3.js - How to use inline JSON as dataset for D3 charts, instead of csv/tsv/json file
- Render D3 graph from a string of JSON instead of a JSON file
- How to load data from an internal JSON array rather than from an external resource / file for a collapsible tree in d3.js?
- How to use a external JSON file instead of a hard coded JSON file in the HTML?
- How to use json data instead of tsv file in d3 multi line charts?
- How to call JSON from a file instead of in-line for Multi-Edge D3 Example
- Use Json file for d3.js-graph
- Use csv file instead of json file in d3.js
- I have a php file which gives JSON output and want to use that JSON in D3
- Converting separate data frames to a JSON file for a tidy tree chart
- json string manipulation for use with d3.js
- Converting a CSV file into a JSON so as to get tree like structure for creating a D3 categorical tree
- Use json file instead of csv in d3.js pie chart
- d3js charts, Use json strings instead of json file
- What is meaning of size in json file for drag and drop collapsible tree in d3.js
- In Hierarchical edge bundling how to use json string instead of a json file?
- d3 - reading JSON data instead of CSV file
- how to load a json object instead of json file
- how to use svg file for image source in D3
- scipy dendrogram to json for d3.js tree visualisation
- Creating hierarchical JSON from MySQL results and PHP for D3.js tree?
- How to use d3.js to visualize a JSON tree graph?
- Json file for Canada's province
- Using D3.js with a javascript object instead of an external JSON file
- D3 heatmap convert code to use json instead of tsv
- How to export/save updated d3.js v4 tree json data string
- convert a flat json file to tree structure in javascript
- Specifying the json file for some visualization via a dropdown box
- How to read JSON data from same json for tree layout insteadof reading from other .JSON file?
More Query from same tag
- Brush d3.js with right click
- Multilevel Hierarchical Edge Bundling
- D3.js is not recognized by PyCharm
- D3 Sunburst - Possible to show certain layers
- How to create curved lines connecting nodes in D3
- Conditional color of countries selecting word in name of Topojson
- dc.js, unable to render lines on a composite chart?
- Data structure for a family tree with multiple partners and siblings?
- Topojson: quantization VS simplification
- D3 Multi-Level Nesting for Multi-Line Chart
- Is there an "axis equal" in D3?
- DC.js, crossfilter - generic grouping with varying number of columns
- Reshape data for D3 stacked bar chart
- d3.js Heatmap legend
- Multi Object JSON containing static and dynamic data
- Constrain zoom and pan in d3
- NoReverseMatch at Error using Django and D3
- Tooltip does not appear for the overlapped circles in d3.js
- undefined values while loading csv file for a d3 project
- How to use D3.format for dynamic values having different numbers?
- tooltip responsive inside a div - not showing
- Converting nodes and links to hierarchical tree in d3.js
- How do you allow d3js plot to run off screen
- ReactJS:call child method from another child component?
- Understanding D3 TopoJSON transformations
- D3 hierarchy collapse to first level by default
- images ds3.js heatmap
- D3 bind data for exiting
- d3js: Add quantitative dimension to Hierarchical Edge Bundling
- d3.geo.path rectangle wrapping the wrong way