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
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ yarn add uplot-react-native
24
24
25
25
## Usage
26
26
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`.
28
28
29
29
```javascript
30
30
import { useRef, useEffect } from'react';
@@ -76,7 +76,7 @@ The `ref` exposes the following methods:
76
76
- `setSize(width, height)`: Set the size of the chart.
77
77
- `destroy()`: Destroy the chart instance.
78
78
79
-
### Control plot dimensions
79
+
### Plot dimensions
80
80
81
81
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.
0 commit comments