When responsive is false and no canvas height explicitly set, the aspectRatio option wasn't applied because of the canvas default height. Prevent the retinaScale method to change the canvas display size since this method is called for none responsive charts, but instead make the resize() responsible of these changes. Also, as discussed some time ago, moved most of the core.js logic into core.controller.js. Clean up the destroy process and make sure that initial canvas values are properly saved and restored.
Chart.js
Simple HTML5 Charts using the canvas element chartjs.org
Installation
You can download the latest version of Chart.js on GitHub or just use these Chart.js CDN links.
To install via npm:
npm install chart.js --save
To Install via bower, please follow these instructions.
Documentation
You can find documentation at www.chartjs.org/docs. The markdown files that build the site are available under /docs. Previous version documentation is available at www.chartjs.org/docs/#notes-previous-versions.
Contributing
Before submitting an issue or a pull request to the project, please take a moment to look over the contributing guidelines first.
For support using Chart.js, please post questions with the chartjs tag on Stack Overflow.
Building and Testing
To build, run gulp build.
To test, run gulp test.
To test against code standards, run gulp lint.
More information on building and testing can be found in gulpfile.js.
Thanks to BrowserStack for allowing our team to test on thousands of browsers.
License
Chart.js is available under the MIT license.