highcharts / highcharts-react-native

Other
103 stars 81 forks source link

how do I disable the scroll bar on actual android devices? #98

Closed wzhang2 closed 4 years ago

wzhang2 commented 4 years ago

it seems like the chart is not stretched out to fit the height when I test it on an android phone, and a scroll bar is always present with the chart cutoff, but I don't see it on the iOS nor android simulators, and its also fine on an actual iOS device. I tried to set scrollBar: {enabled: false} in the chart options, but that is also not helping

<HighchartsReactNative styles={{ backgroundColor: '#fff', height: 300, justifyContent: 'center', }} options={options} loader={true} modules={modules} />

and if I set the height as a percentage, the chart won't show up

image

sebastianbochan commented 4 years ago

What is the size of a wrapper (i.e View) around the <HighchartsReactNative />

It looks like wrapper is higher (300px) than parent element.

wzhang2 commented 4 years ago

thanks i figured that out @sebastianbochan