gonewandering / angles

An angular.js wrapper for Chart.js
MIT License
632 stars 87 forks source link

Allow unspecified width but specified height for canvas #30

Closed matiassingers closed 10 years ago

matiassingers commented 10 years ago

This small changes allows for a definition of the canvas like so:

<canvas linechart options="options" data="chart" width="0" height="300"></canvas>

The canvas would then stretch to 100% of the parent element, but with the height specified to 300px.

Would love some feedback on this solution.