Fixed deprecated warnings in Chrome.
Reset tooltip state when re-drawing a chart.
Add trigger callback on tooltip show and hide.