txbm / angular-chartjs

Directive set for the ChartJS library. Supports data bindings and attribute-level specification for chart specific options. The only Angular ChartJS module that supports ALL chart options as HTML5 attributes :)
MIT License
146 stars 37 forks source link

Setting up a custom width #28

Closed tusharmath closed 9 years ago

tusharmath commented 9 years ago

How can one setup a custom width for the canvas?

txbm commented 9 years ago

Can you just use CSS?

tusharmath commented 9 years ago

I got it to work using - Chart.defaults.global.responsive = true and then putting it inside a div with fixed height width.