Skip to content

Commit f8da3e9

Browse files
authored
Update basic api example in readme (#36)
1 parent 6f57ff3 commit f8da3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const data = [
7171
{x: 1454112000, y: 2.43}, {x: 1454198400, y: 2.20},
7272
];
7373

74-
const points = monotoneCubicInterpolation(data)(40);
74+
const points = monotoneCubicInterpolation({data, range: 40});
7575

7676
const BasicExample = () => (
7777
<View style={{ backgroundColor: 'black' }}>

0 commit comments

Comments
 (0)