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
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,29 +22,28 @@ yarn add uplot-react-native
22
22
23
23
## Usage
24
24
25
-
Create a uPlot chart via the `ChartUPlot` component, which takes in initial data and options as props. The data and options take the same form as when you call `new uPlot(options, data)`. You can update the chart via a `ref`.
25
+
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`.
- `createChart(options, data)`: Create a new chart. The initial render of ChartUPlot will automatically call this method with the initial options and data.
72
71
- `setData(newData)`: Replace the data in the chart.
0 commit comments