Skip to content

Commit b59b993

Browse files
committed
readme
1 parent 645aaf2 commit b59b993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ yarn add uplot-react-native
2424

2525
## Usage
2626

27-
Create a uPlot chart via `ChartUPlot`. The `data` and `options` props it takes are structured the same as when you call `new uPlot(options, data)`. You update the chart via a `ref`.
27+
Create a uPlot chart via `ChartUPlot`. The `data` and `options` props are structured the same as when you call `new uPlot(options, data)`. You update the chart via a `ref`.
2828

2929
```javascript
3030
import { useRef, useEffect } from 'react';
@@ -76,7 +76,7 @@ The `ref` exposes the following methods:
7676
- `setSize(width, height)`: Set the size of the chart.
7777
- `destroy()`: Destroy the chart instance.
7878
79-
### Control plot dimensions
79+
### Plot dimensions
8080
8181
You can set the width and height either through the uPlot `options` or by passing a `style` prop to the `ChartUPlot` component. If you set both, the uPlot `options` will take precedence.
8282

0 commit comments

Comments
 (0)