I am new to react and I am trying to use react-easy-charts for my application. I tried to use multiple PieCharts and I encountered the error:
Uncaught TypeError: Cannot use 'in' operator to search for 'data' in undefined
I am also using redux and axios to get my data. I can get the data well and display it in 1 chart. but when I tried to use multiple charts, I'm having issues.
I also tried to pass some data coming from a variable like below and use it in one chart, but when I tried to use the same variable to another pie in the same component , the same issue appears. Is this a limitation?
Had the same issue...seems when you have more than one pie chart on the same component it affects the other....just have them on different ones and issue seems to solve the issue
Hi,
I am new to react and I am trying to use react-easy-charts for my application. I tried to use multiple PieCharts and I encountered the error:
I am also using redux and axios to get my data. I can get the data well and display it in 1 chart. but when I tried to use multiple charts, I'm having issues.
Here's my sample code:
I also tried to pass some data coming from a variable like below and use it in one chart, but when I tried to use the same variable to another pie in the same component, the same issue appears. Is this a limitation?
Thank you in advance! :)