Simple D3 tutorial not appearing - d3.js

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

Related

d3js not showing any objects on browser

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.

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.

How can I try this jquery plugin - Galleria?

Ok. I have some experience with HTML and CSS, little with Javascript and none with JQuery.
And I'm trying to try out in my HTML file the Galleria plugin with fullscreen theme but I can't make it work. ( http://galleria.aino.se/ )
It only show the empty page with no pictures. I took the source code from the demo page and I pasted in my page and after some little modifications with the url of the theme, I managed to have on my screen only the image, without the "mechanism". Any help?
I think the instructions were made for an old release of the plugin and that's the reason I can't get it work.
P.S. I found a ready made demo on googlecode, but I can't get the fullscreen feature. Any help?
Try passing debug:true to yield more errors if you are seeing a blank page. Regarding customizations, try the documentation and API reference.

sIFR: visible on local, not remote

When working on a static mirror of the site, the sIFR is rendered correctly using Dreamweaver's live view. When viewing site locally in a browser, the regular text is printed, as expected. However, when uploaded and viewed from a remote web server, neither is visible.
I am using version 3 of sIFR, and the site can be viewed here, with an example page employing siFR implementation:
http://www.thevulgarbulgar.com/TEMP/rush/vacancies.html
Whereas it should look like so:
rush.co.uk/vacancies
Thanks for looking.
vb
The Flash movie can't be found: http://www.thevulgarbulgar.com/sites/all/themes/basic/flash/futuraxb.swf
ahh, tis looking from root, when file is here: http://www.thevulgarbulgar.com/TEMP/rush/sites/all/themes/basic/flash/futuraxb.swf
Thanks.

Very newbie troubleshooting. Basic p5.js index.html setup on Atom, not generating anything on browser?

literally just got into the world of coding, so if my question seems absolutely insane, I do apologise.
Anywho, was following some tutorials (Daniel Shiffman's https://www.youtube.com/watch?v=HZ4D3wDRaec) how to setup a basic p5.js file on Atom, and generate a green window to test if the code is working. Really basic setup, nothing should've went wrong.
For some reason the text editor wouldn't read my code while I was typing; so then I clicked on the index.html file from the root folder.
Instead of having to show a green window, nothing actually happened. I don't know if this is a software issue, seems like nobody has encountered such a basic problem.
Nothing seems to be wrong here. And it opened a white window when it should've been green
You might have missed a couple of steps in the video:
You can simply (manually) double click index.html from the yayme folder on your Desktop. This should open your default browser with the page. This works for simple sketches but once you start loading assets (images/sounds/data from other sites, etc.) it's best to use a local web server
You can use any http server as Daniel Shiffman's video mentions or the atom-live-server package (notice the install button on that page which will open Atom for you). Once that's installed you can access it via Atom > Packages> atom-live-server

Resources