misoproject/dataset

Uncaught ReferenceError: log is not defined

mgr2 opened this issue · 1 comments

mgr2 commented

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

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");
  }
});