Closed dayres closed 9 years ago
I just saw there was an existing issue for this problem.
Where is the existing issue? How do you fix this without a $timeout?
Solved by changing this:
chartObj.resize();
To:
if (chartObj.chart.canvas.parentNode.clientHeight !== 0 && chartObj.chart.canvas.parentNode.clientWidth !== 0) {
chartObj.update();
}
Version 1.0.15
When the chart is placed inside of a tab-pane that is hidden on page-load, the legend renders, but the chart content does not. (In this case, a bar chart)