carlcraig/tc-angular-chartjs — pull request #7 by danada (2014-09-29 21:12:26+00:00)
Title: Explicitly destroy chart when data is changed

When changing chart data, the old chart is left in the canvas with the new one rendered on top. This isn't a major issue until you hover over a chart. With multiple charts drawn, old segments still retain their event listeners and will draw tooltips on hover.

This PR addresses the issue by destroying the chart object if it exists before recreating it.