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

Barchart width doesn't change the actual width #101

Open
oscar-gallog opened this issue Oct 3, 2019 · 2 comments
Open

Barchart width doesn't change the actual width #101

oscar-gallog opened this issue Oct 3, 2019 · 2 comments

Comments

@oscar-gallog
Copy link

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
Copy link

use defaultColumnWidth instead of width
defaultColumnWidth:{500}

@nolife08021
Copy link

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

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

3 participants