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

Setting Chart size to width of page? #124

Open
jonesg504 opened this issue Sep 14, 2017 · 1 comment
Open

Setting Chart size to width of page? #124

jonesg504 opened this issue Sep 14, 2017 · 1 comment

Comments

@jonesg504
Copy link

Is there a way to set the width of a chart to the width of the screen (ie. 100%) I can only find way to change the actual pixel value.

@mitjanikolaus
Copy link

Make sure you are setting the width when instantiating the chart element, not inside the options for the chart (see the example in the README). There you can also set a percentage, e.g.:

chart = gchart.LineChart(simple_data_source, width="100%")

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

2 participants