Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 4cdc9b7

Browse files
authored
Fixing Headings
1 parent 7c8d474 commit 4cdc9b7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Plotly Node API
1+
# Plotly Node API
22
[![Circle CI](https://circleci.com/gh/plotly/plotly-nodejs/tree/master.svg?style=svg)](https://circleci.com/gh/plotly/plotly-nodejs/tree/master)
33
> Analyze and Visualize Data, Together
44
@@ -7,12 +7,12 @@
77
- [mock sensor stream](http://plot.ly/~streaming-demos/6/)
88
- [math bar fight](http://plot.ly/~streaming-demos/44/)
99

10-
##Installation
10+
## Installation
1111
```javascript
1212
npm install plotly
1313
```
1414

15-
##Usage
15+
## Usage
1616
```javascript
1717
var plotly = require('plotly')('username','apiKey');
1818

@@ -27,19 +27,19 @@ plotly.plot(data,graphOptions,function() {
2727
});
2828
```
2929

30-
####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/)
3131

3232
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).
3333

34-
#Methods
35-
##var plotly = require('plotly')(username, apiKey)
34+
# Methods
35+
## var plotly = require('plotly')(username, apiKey)
3636
`username` is a string containing your username
3737
`apiKey` is a string containing your API key
3838
```javascript
3939
var plotly = require('plotly')('username', 'apiKey');
4040
```
4141

42-
##plotly.plot(data,graphOptions[, callback])
42+
## plotly.plot(data,graphOptions[, callback])
4343
Plotly graphs are described declaratively with a data JSON Object and a graphOptions JSON Object.
4444
`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)
4545
`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) {
5858
console.log(msg);
5959
});
6060
```
61-
##var stream = plotly.stream(token[, callback])
61+
## var stream = plotly.stream(token[, callback])
6262
`token` accepts a token string
6363
`callback(res)` where `res` is a the response object with the following attributes : `res.msg`, `res.statusCode`
6464

@@ -156,7 +156,7 @@ Plotly.plot(data, graphOptions, function (err, resp) {
156156
```
157157

158158

159-
##plotly.getFigure(fileOwner, fileId[, callback])
159+
## plotly.getFigure(fileOwner, fileId[, callback])
160160
`file_owner` accepts a string of the file owner's name
161161
`fileId` is an integer, representing the graph ID
162162
`callback(figure)` where `figure` is a the JSON object of the graph figure
@@ -170,7 +170,7 @@ plotly.getFigure('fileOwner', 'fileId', function (err, figure) {
170170
});
171171
```
172172

173-
##plotly.getImage(figure[, options, callback])
173+
## plotly.getImage(figure[, options, callback])
174174
`figure` is a JSON object of the graph figure
175175
`options.format` | `jpg`, `png`, `pdf`, `eps`, `webp`
176176
`options.width` | width in `px` (default : 700)
@@ -230,7 +230,7 @@ plotly.getFigure('fileOwner', 'fileId', function (err, figure) {
230230
});
231231
```
232232

233-
##plotly.deletePlot(fid[, callback])
233+
## plotly.deletePlot(fid[, callback])
234234
`fid` is a String, the id of the plot you wish you delete
235235
`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.
236236

0 commit comments

Comments
 (0)