Closed vic64 closed 9 years ago
Ok, for this, double check you are using the latest Chart.js vendor (tc-chartjs will need Chart.js 1.0.0^ not the 0.2 version).
You will also need to make sure that responsive: true,
is in your chart options.
check http://carlcraig.github.io/tc-angular-chartjs/doughnut/ as the chart there will resize when the div changes size.
I'm on 1.0.1-beta4. It's responsive.
I'm making DIV size change via CSS (dynamically assigning via ng-class).
ok, if you have access to the chart object via chart="variable"
directive, then you can call .resize()
on that object to force the chart to resize.
@vic64 did you manage to solve this issue? If its solved feel free to close the issue.
Currently - if I change the div's size nothing happens. It only redraws if I change the browser window size...