Import

Import

It realizes an object to load and handle internal (already defined as JavaScript object) data sources (CSV,JSON,...)

Constructor

new Import(options)

Source:
Create a new Data.Import instance.
Example
// load the data table defined by a JSON object named response and get the values of one column 

table = Data.import({"source":response,"type":"json"});

var a = table.column("column name").values();
Parameters:
Name Type Description
options Object

{ source: JavaScript object,

typedescription
"csv"the source is 'plain text' formatted as Comma Separated Values
delimiter supported: , and ;
"json"the source is JSON (Javascript Object Notation)
"geojson"the source is a JSON object formatted in GeoJson
"topojson"the source is a JSON object formatted in TopoJson
"jsonDB"the source is a jsonDB table object
"rss"the source is an xml rss feed
Returns:
A new Table object