Closed RSchneider94 closed 2 years ago
For anyone having similar "weird" problems like this, I found what was my problem. I haven't installed the react-native-svg
library and that's why I was having weird issues, although there were no errors at all on React Native Debugger.
I have posted this on StackOverflow too, but unfortunately no responses there for this issue and can't even find something similar to this. Do someone here had the same problem, perhaps?
I have tried different settings for the chart, but can't make the labels for the X axis dates show correctly. All labels are displayed on the same place, even if there are different dates and the chart displays well:
Here is my code:
this was my last try (setting the
xAccessor
of theAreaChart
using thegetTime
function. Without this, it didn't work as well. Any ideas? Tried to look at other similar questions and couldn't find a solution that work for me.