capitalone / react-native-pathjs-charts

Android and iOS charts based on react-native-svg and paths-js
Apache License 2.0
879 stars 260 forks source link

The sort method cannot be invoked on an Immutable data structure. #178

Closed rcsheng closed 7 years ago

rcsheng commented 7 years ago

Before filing an issue please ensure the following boxes are checked, if applicable:

When I follow the example and have a hard-coded data variable, the charts render correctly. However, once I try to tie the data to a variable on my state, I receive the following error: " The sort method cannot be invoked on an Immutable data structure."

Apologies, newbie here.. not sure if this is something to do with the charts, or maybe something else? I've tried using slice() and map() off the data array on my state, but still get the error