Fix a memory leak.

Fix a memory leak. Only create the ChartWrapper once and store it in the current scope. When the data is updated, update the existing ChardWrapper and redraw it instead of creating and drawing a new one.  Without this, the browser will bog down after many refreshes.  The bug and the fix were tested in Chrome using timeline and profile heap snapshots.