Closed darimuhittinhey closed 1 year ago
Candles are still there, but they are too thin.
Using new Date(2021, 1, 1
).getTime()` is not a good idea, because x values are too sparse.
x: new Date(2021, 1, 5).getTime() / 86400000
timeUnit: 'DAYS'
should work, you can also check Example/app/StockChartScreen.js
Candles are still there, but they are too thin. Using
new Date(2021, 1, 1
).getTime()` is not a good idea, because x values are too sparse.
x: new Date(2021, 1, 5).getTime() / 86400000
timeUnit: 'DAYS'
should work, you can also check Example/app/StockChartScreen.js
Thank you so much for your help. This approach solved the issue. But it's still a problem candles are too thin when giving values that they far away from each other.
But we can close the issue.
Expected Behavior
Candles on graph has to be visible.
Actual Behavior
Candles are gone.
Screenshots
Expected (used 1,2,3,4,5 for x values):
Actual (used timestamps for x values):
Data and config
Steps to Reproduce the Problem
Create a new project, add react-native-charts-wrapper package then use timestamps or big values for x values.
Specifications
Explanation
When i use smaller values like 1,2,3,4,5 for x values in dataset its ok but when i use timestamps or big values for x candles are not more visible.