d3js not showing any objects on browser - d3.js

I'm new to d3js and trying to vizualize a decision-tree from the following Github
https://github.com/fractalytics/sklearn-tree-d3js
when I download everything from above and open the index.html nothing shown on my web browser.
I swicthed from Chrome to FireFox but nothing happened.
What's wrong or missing in this case??
I tried some other examples like https://gist.github.com/ajschumacher/65eda1df2b0dd2cf616f
but got the same result. nothing shown on my browser.

Related

How do I find missing images in Firefox debugging

In firefox, I have a few missing images being shown in the console like:
GET http://localhost/img/file.svg [HTTP/1.1 404 Not Found 1513ms]
Is there a way I can find where these images are being called from? I'm using a bootstrap template and would rather not go through every script to locate them. I'm sure they are being called from a style sheet.

Firefox add-on will not display images

I have a blank Firefox Add-On I made using the Getting Started Tutorial. When I run my extension using jpm run I observe the following.
If I navigate to any image it appears like this (image is displayed nicely in the centre):
However, I have the same image store in my extension under: ./data/test.jpg. When I navigate to resource://my-addon/data/test.jpg I get the following blank page:
The image is there, because if I hover over it in the inspector, it shows:
Am I doing something wrong, missing something in the docs about rendering images or is there a bug with how images are being rendered from the extension?
Include the self and then do
console.log(seld.data.url(''))
This will give you the id of your addon. It is very likely not my-addon it will be something like: jid1-4GP7z3tkUd3Tzg#jetpack - so your path to your image will be resource://jid1-4GP7z3tkUd3Tzg#jetpack/data/test.jpg.

Birt report viewer installation on glassfish

I'm trying to set up an Birt report viewer (4.3.1) on a glassfish server(4).
The index page works, but when i try to run the test report , the browser gives me some text but not render the player. That doesn´t seems like an exception.
That's the screenshot:
https://dl.dropboxusercontent.com/u/3294352/www/BIRTPROBLEM.PNG
Seems like the path is incorrect (images, styles and js includes)... I did try to solve moving the files on applications folder (on glasshfish domain), but that's not working.
Please, help :)
I had the same issue.
http://developer.actuate.com/community/forum/index.php?/topic/34461-birt-glassfish/#entry127724
I responded to a similar questions about this on the Eclipse BIRT Newsgroup a little while back. I saw the same issue with the frameset and run servlets. If you change the URL to preview, it works as expected. You could file a bug for this in the eclipse.org/birt bugzilla to see what they say.

Simple D3 tutorial not appearing

Used code from this tutorial:
http://bl.ocks.org/mbostock/3883245#index.html
Saved index.html
Saved data.tsv into the same directory
First, I tried opening the html by itself. That showed a blank web page (viewing the page source showed the code was indeed there).
Then, I ran python -m SimpleHTTPServer 8888 & in the directory (although I should not have needed this step). It showed a blank web page as well.
https://github.com/mbostock/d3/wiki
How do I get d3 working? Thanks
Just forgot that I renamed a file.
Incidentally, if you cannot get it to work you need to check your browser. The above tutorial did not work for me in Safari or Chrome on a mac but worked in Firefox. I got this information from here:
Very simple tutorial example of D3.js not working
and here:
https://github.com/mbostock/d3/wiki

Three.js Example code, from StackOverflow, not working

I copied and pasted the Three.js code given here into an HTML file and downloaded the three.js package from the website, and configured the <script> tag to point to the location of the file three.min.js.
Nonetheless, when I open the HTML file, it displays a blank white screen.
What am I missing?
well I tryed the exact same thing and I'm seeing the wireframe cube rotating on screen. A few things to try.
1) drop the three.min.js right in the root folder and copy/paste the example code again without any alterations.
2) did you get the three.min.js from the zip package under the build directory? Or did you navigate the git repo and copy/paste it? If copy/paste was used be sure to click the "Raw" button to get the code without the wrapper HTML.
3) try the latest Firefox or Chrome browsers first. If it works there but not in say Safari, there are a few steps you need to take to enable WebGL in Safari first.
4) your video card may be blacklisted due to driver incompatibilities.
If none of these help, then post up the code, where you got the Three.js package, what browser and video card your using and I'll see what else I can do to help :)
I had the same problem. Windows hides the file extensions by default. I change it in folder options and it worked.

Resources