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

Chart increasing height infinitely when "autofit=true" #9

Closed ivanhtp closed 10 years ago

ivanhtp commented 10 years ago

When you set autofit=true and keeps resizing the window, the chart will increment its height and became bigger. To reproduce it, just resize your window some times. Happens even in the demo: http://embed.plnkr.co/pC7gJ7/preview (watch the first polar chart)

txbm commented 10 years ago

You're right about that! I just noticed it in the demo. I believe has something to do with using percentage based dimensions on the parent container. Not certain as to why yet but I'll definitely be looking into it. The good news is this will not matter anymore since ChartJS now natively supports automatic resizing of charts-- so I will be removing that feature soon.