oksktank / react-native-pure-chart

react-native chart library that not using svg or ART but only using react native pure components.
MIT License
288 stars 132 forks source link

Barchart width doesn't change the actual width #101

Open oscar-gallog opened 5 years ago

oscar-gallog commented 5 years ago

So I'm having a problem, I'm trying to change the width from my Bar Chart, and like the documentation says:

<PureChart type="bar" data={series} width={globals.width * 0.9} height={globals.height * 0.3} backgroundColor={'white'} xAxisColor={'red'} yAxisColor={'red'} labelColor={'green'} style={{ borderColor: 'green', borderWidth: 1, width: 600 }} />

But it doesn't change a thing, even if I put the same width value on the parent (which it actually changes) the bar chart continues to be super slim, it doesn't grow at all, any idea why?

jay70077 commented 4 years ago

use defaultColumnWidth instead of width defaultColumnWidth:{500}

nolife08021 commented 4 years ago

after set defaultColumnWidth, the chart not able to fully scroll to the end.(left to right)