Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart rendering different each time #61

Open
aliceathens opened this issue Nov 27, 2017 · 3 comments
Open

Chart rendering different each time #61

aliceathens opened this issue Nov 27, 2017 · 3 comments

Comments

@aliceathens
Copy link

On first load of my application the chart will render at the correct view. However if i refresh the app it will render weird and almost like its zoomed in... happens on simulator and real device. Please help!!

screen shot 2017-11-27 at 11 12 26 am

screen shot 2017-11-27 at 11 12 13 am

@salujaharkirat
Copy link

#23

@NachoJusticia
Copy link

Hi @aliceathens
I had the same problem and I solved it passing the following properties to the chart:

  • scalesPageToFit to false
  • automaticallyAdjustContentInsets to false
import ChartView from 'react-native-highcharts';
...
// declare conf variable
<ChartView style={{ flex: 1, backgroundColor: 'transparent'  }} config={conf} scalesPageToFit={false} automaticallyAdjustContentInsets={false}></ChartView>

I'm adding a Pull Request to this project in order to update the README adding these two properties. I hope this is useful for you 👍

@drc37
Copy link

drc37 commented Mar 28, 2018

I am seeing the same thing. The graph component has just been copied and pasted on the same page. This is the exact same just copied and pasted multiple times on the page.
screen shot 2018-03-28 at 11 15 45 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants