Skip to content

A simple node.js wrapper for Plot.ly's REST API

Notifications You must be signed in to change notification settings

arjunpola/plotly-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

##Simple node.js Wrapper for the Plotly API.

###Installation

npm install plotly

###Usage

var plotly = require('plotly');

###There are two main functions, all arguments are required.

plotly.signup('desired_username', '[email protected]')

plotly.plot(data, username_or_email, api_key, layout)

###Plotting Example

var plotly = require('plotly');

var un= "your_username";
var key= "your_api_key";

var data= [{
	"x": [1, 2, 3, 4],
	"y": [10, 15, 13, 17],
	"type": "scatter"
}];

var layout = {
	"filename": "node node node node",
	"fileopt": "new",
	"layout": {
		"title": "experimental node data"
	},
	"world_readable": true
};

plotly.plot(data, un, key, layout);

###Example Response

{"url": "http://plot.ly/~demos/1324",
"message": "",
"warning": "",
"filename": "node node node node",
"error": ""}

Go ahead and copy and paste the link into your browser to check out your graph!

Full REST API Documentation can be found here

Plotly REST Documentation

About

A simple node.js wrapper for Plot.ly's REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published