Patch the line-chart's tooltips to fix memory leaks