react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

monotoneCubicInterpolation function and ChartPath taking in more parameters then the documentation specifies

Open ColinMcKerracher opened this issue 4 years ago • 3 comments

The monoToneCubicInterpolation function seems to be looking for a {data, range} parameter, and the ChartPath is looking for a children and data parameter. Even the example copied directly does not work. Do I have an incorrect version?

ColinMcKerracher avatar Jul 27 '21 04:07 ColinMcKerracher

const points = monotoneCubicInterpolation({ data, range: 40 });

Use it this way

Jonatthu avatar Aug 04 '21 17:08 Jonatthu

not working

Umesh-Bhati avatar Aug 31 '21 09:08 Umesh-Bhati

try const points = monotoneCubicInterpolation({ data: state.data, range: 40 })

It works

kbwhodat avatar Sep 04 '21 05:09 kbwhodat