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

Uncaught ReferenceError: log is not defined #204

Closed mgr2 closed 11 years ago

mgr2 commented 11 years ago

I keep getting a "Uncaught ReferenceError: log is not defined " when trying to display data from a dataset using the log() function.

mhkeller commented 11 years ago

The miso website using log(some_variable) syntax to show values.

However, if you're running this in javascript in a modern web browser as Chrome, Safari or Firefox, you'll need to write console.log(some_variable).

The Quick Start should look like this:

var ds = new Miso.Dataset({
  url : '/data/crudeoil.csv',
  delimiter : ','
});

ds.fetch({
  success : function() {
    console.log("Available Columns:" + this.columnNames());
    console.log("There are " + this.length + " rows");
  }
});