TradingPal / react-native-highcharts

📈 Add Highcharts charts to react-native app for IOS and Android
https://github.com/TradingPal/react-native-highcharts
255 stars 159 forks source link

Charts not show data #105

Open kvrscream opened 5 years ago

kvrscream commented 5 years ago

data: Captura de Tela 2019-07-10 às 09 49 54

result: Captura de Tela 2019-07-10 às 10 32 43

njt1982 commented 4 years ago

Likely related to #96 - either the deprecated webview issue OR the originWhitelist issue...

rgordon95 commented 4 years ago

I am having a similar issue where passing in data such as [ 1564600076000, -1.0469641205323788 ], [ 1564340876000, -1.0469641205323788 ], [ 1564081676000, -1.0469641205323788 ], [ 1563822476000, -1.0469641205323788 ],

the time will show or the data will show but I can't seem to get both to display.

lkum11 commented 4 years ago

@kvrscream did you find any solution? I am facing the same issue, It's rendering fine on android but IOS is showing just white space.

njt1982 commented 4 years ago

@lkum11 I had to do two things to get this working: 1) Add scalesPageToFit={undefined} to the element: <ChartView style={styles.chart} config={conf} scalesPageToFit={undefined} />

2) Switch to this PR: https://github.com/TradingPal/react-native-highcharts/pull/96