Skip to content

Commit

Permalink
Updated readme [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 19, 2021
1 parent b592c71 commit f32bf0d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,16 @@ Timeline - *Google Charts*

Multiple series

```jsx
```javascript
data = [
{"name":"Workout", "data": {"2021-01-01": 3, "2021-01-02": 4}},
{"name":"Call parents", "data": {"2021-01-01": 5, "2021-01-02": 3}}
];
```

// and
and

```jsx
<LineChart data={data} />
```

Expand All @@ -101,12 +104,16 @@ or

Data can also be a callback

```jsx
```javascript
function fetchData(success, fail) {
success({"2021-01-01": 2, "2021-01-02": 3})
// or fail("Data not available")
}
```

and

```jsx
<LineChart data={fetchData} />
```

Expand Down

0 comments on commit f32bf0d

Please sign in to comment.