-
JeskoMarch 20, 2017 at 10:34 pm #7751
Thanks for sharing your great visualization, weightedtree: it´s just awesome!
While trying to modify your files locally, I´m facing vital lack of understanding with regards to the csv source data (using Xampp and Chrome, everything works fine):
Via Localhost/weightedtree.html you initialize the function “loaddata”, which is stored in weightedtree.js, right? In this function (within weightedtree.js) the path of the csv is located as: d3.csv(“data/weightedtree_federal_budget.csv”,
But when I modify the locally stored csv file (under data folder), the output doesn´t change?!
Could you please explain to me how the csv import works, since my assumption is seemingly wrong?Your help is highly appreciated, many thanks!
JeskovizulyMarch 21, 2017 at 6:26 am #7757Hi Jesko,
You seem to be do everything correctly. The actual file that has the loadData() function is weightedtree_test.js.
My suggestion is to debug the load data routine by putting a breakpoint in it (Chrome debugger works well) and inspect the data to make sure you see the changes you have made.
One potential issue is that your browser may be caching the result – so make sure to clear your caches and force a reload on the browser.
Let me know if that helps.
Cheers,
Tom
JeskoMarch 21, 2017 at 10:34 pm #7766Hi Tom!
Thank you very much for your quick support!
Now everything´s working perfectly well (I simply misspelled the csv file´s name:-)).
Also thanks to you and Vishal for showing how the events (click, mouseover, mouseout) are working with IE11:
svg.vz-weighted_tree-viz {
fill:none;
font-family:Roboto;
pointer-events:visible;
}Beautiful stuff!
-
|
You must be logged in to reply to this topic.