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.
This simply returns an HTML string that will be rendered.
43
+
34
44
####Full REST API Documentation can be found here: [https://plot.ly/api/rest/](https://plot.ly/api/rest/)
35
45
36
46
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).
@@ -45,8 +55,8 @@ var plotly = require('plotly')('username', 'apiKey');
45
55
46
56
##plotly.plot(data,graphOptions[, callback])
47
57
Plotly graphs are described declaratively with a data JSON Object and a graphOptions JSON Object.
48
-
`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)
49
-
`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
+
`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)
59
+
`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)
50
60
`callback(err,msg)` where `err` is an error Object, and `msg` is the return response Object
51
61
52
62
The `msg` object has the following attributes : `msg.url`,`msg.filename`,`msg.message`,`msg.warning`,`msg.error`
@@ -180,7 +190,7 @@ plotly.getFigure('fileOwner', 'fileId', function (err, figure) {
180
190
`options.width` | width in `px` (default : 700)
181
191
`options.height` | height in `px` (default : 500)
182
192
183
-
`callback(err, imageData)`
193
+
`callback(err, imageData)`
184
194
185
195
`err` is an Error Object
186
196
`imageStream` is a Stream of base-64 encoded imageData
0 commit comments