Skip to content

Commit

Permalink
(doc) samples fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Dec 23, 2023
1 parent 438fe60 commit 6ded05c
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@

## [`GET /line`](https://instachart.coveritup.app/line?title=Single+Line+series&x_label=dates&y_label=amount&data={%20%22x%22:%20[[%222022-12-23%22,%222022-12-24%22,%222023-12-25%22]],%20%22y%22:%20[[1,2,3]]%20})

| Query | Required | Description | Example |
| :-------- | :------- | :---------- | :------------------------------------------------------------------------ |
| `data` || JSON | `?data={ "x": [["2022-12-23","2022-12-24","2023-12-25"]],"y": [[1,2,3]]}` |
| `title` | | string | |
| `x_label` | | string | |
| `y_label` | | string | |
| `height` | | int | |
| `width` | | int | |


| `data` | Required | Description | Example |
| :------ | :------- | :---------- | :------------------------------------ |
| `x` || []Array | `"x": [["2022-12-23","2022-12-24"], ` |
| `y` || []Array | `"y": [[1,2,3],[3,5,7]]` |
| `names` | | Array | `"names": ["Series A", "Series B"]` |
| Query | Required | Description | Example |
| :-------- | :------- | :---------- | :--------------------------------------------------------- |
| `data` || JSON | `?data={ "x": [["2022-12-23","2023-12-25"]],"y": [[1,2]]}` |
| `title` | | string | |
| `x_label` | | string | |
| `y_label` | | string | |
| `height` | | int | |
| `width` | | int | |


| `data` | Required | Description | Example |
| :------ | :------- | :---------- | :---------------------------------------------------------------- |
| `x` || []Array | `"x": [["2022-12-23","2022-12-24"], ["2022-12-23","2022-12-24"]]` |
| `y` || []Array | `"y": [[1,2],[3,4]]` |
| `names` | | Array | `"names": ["Series A", "Series B"]` |

### Single Line Series

Expand Down

0 comments on commit 6ded05c

Please sign in to comment.