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

Responsive #295

Closed
fulldecent opened this issue Oct 16, 2013 · 3 comments
Closed

Responsive #295

fulldecent opened this issue Oct 16, 2013 · 3 comments

Comments

@fulldecent
Copy link

Would like to be able to scale the charts and have them respond smoothly when a resize them.

P.S. I found you from this page: http://www.creativebloq.com/html5/create-beautiful-data-visualisations-svg-google-charts-api-5122998

@sudodoki
Copy link
Contributor

For this purpose I'm using plain

$(window).on('resize', function() { redoTheChartFunction();});

Works like a charm, since Morris is all about percentage and calculating sizes dynamically.
And you might consider using something like (underscore's debounce)[http://underscorejs.org/#debounce] so that you aren't repainting in vain.

@sudodoki
Copy link
Contributor

Duplicate of #111.

@fulldecent
Copy link
Author

Thanks for the update, this seems usable for now. I'll let the votes accumulate in #111 for more native behavior.

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