You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
####Full REST API Documentation can be found here: [https://plot.ly/api/rest/](https://plot.ly/api/rest/)
30
+
####Full REST API Documentation can be found here: [https://plot.ly/api/rest/](https://plot.ly/api/rest/)
31
31
32
32
Sign up for plotly here: [https://plot.ly/](https://plot.ly/) and obtain your API key and Stream Tokens in your plotly settings: [https://plot.ly/settings](https://plot.ly/settings).
var plotly =require('plotly')('username', 'apiKey');
40
40
```
41
41
42
-
##plotly.plot(data,graphOptions[, callback])
42
+
##plotly.plot(data,graphOptions[, callback])
43
43
Plotly graphs are described declaratively with a data JSON Object and a graphOptions JSON Object.
44
44
`data` is an array of Objects and with each object containing data and styling information of separate graph traces. Docs: [https://plot.ly/api/rest](https://plot.ly/api/rest)
45
45
`graphOptions` is an Object containing styling options like axis information and titles for your graph. Docs: [https://plot.ly/api/rest](https://plot.ly/api/rest)
@@ -58,7 +58,7 @@ plotly.plot(data, graphOptions, function (err, msg) {
58
58
console.log(msg);
59
59
});
60
60
```
61
-
##var stream = plotly.stream(token[, callback])
61
+
##var stream = plotly.stream(token[, callback])
62
62
`token` accepts a token string
63
63
`callback(res)` where `res` is a the response object with the following attributes : `res.msg`, `res.statusCode`
64
64
@@ -156,7 +156,7 @@ Plotly.plot(data, graphOptions, function (err, resp) {
156
156
```
157
157
158
158
159
-
##plotly.getFigure(fileOwner, fileId[, callback])
159
+
##plotly.getFigure(fileOwner, fileId[, callback])
160
160
`file_owner` accepts a string of the file owner's name
161
161
`fileId` is an integer, representing the graph ID
162
162
`callback(figure)` where `figure` is a the JSON object of the graph figure
@@ -170,7 +170,7 @@ plotly.getFigure('fileOwner', 'fileId', function (err, figure) {
@@ -230,7 +230,7 @@ plotly.getFigure('fileOwner', 'fileId', function (err, figure) {
230
230
});
231
231
```
232
232
233
-
##plotly.deletePlot(fid[, callback])
233
+
##plotly.deletePlot(fid[, callback])
234
234
`fid` is a String, the id of the plot you wish you delete
235
235
`callback` is a function with `err` and `plot` as parameters. `err`, if present, is the error message returned from the request. `plot` is the plot that was deleted.
0 commit comments