misoproject / dataset

JavaScript library that makes managing the data behind client-side visualisations easy
http://misoproject.com
GNU General Public License v2.0
1.18k stars 99 forks source link

Help needed - I can't get the examples to work #192

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi, I'm hoping someone can point me in the right direction. New to Javascript and I can't get miso dataset scripts to do anything. What am I missing? I guess it's something simple/obvious. I've been trying all the examples on the miso site and I can't get any of them to work.

Below, I'm trying a simple example and I just get a blank browser screen.

My index.html file contains:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <html> <head> <script src="/js/miso.ds.deps.min.0.4.1.js"></script> &lt/head> <body> <script> var ds = new Miso.Dataset({ url : 'data.csv', delimiter : ",", }).fetch({ success: function() { console.log("Available Columns:" + this.columnNames()); console.log("There are " + this.length + " rows"); console.log(this); } }); </script> </body> </html>

I have data.csv saved in the same location as the index.html file. The csv contains:

,1995,2000,2005,2010 Germany,29,25,28,29 France,29,28,28,30 Greece,35,33,33,33

I have a folder called js and in that I have the miso.ds.deps.min.0.4.1.js file saved.

What am I missing?