Skip to content
Permalink
Browse files

Clear down all chart elements when update runs

  • Loading branch information
dm-p committed Aug 16, 2019
1 parent 96f776e commit e33fe770a6e60c68234503bc1d09e06a8216ef84
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/visual.ts
@@ -64,6 +64,9 @@ export class Visual implements IVisual {
console.log('Visual update', options);
this.settings = Visual.parseSettings(options && options.dataViews && options.dataViews[0]);

/** Clear down existing plot */
this.container.selectAll('*').remove();

/** Test 1: Data view has both fields added */
let dataViews = options.dataViews;
console.log('Test 1: Valid data view...');

0 comments on commit e33fe77

Please sign in to comment.
You can’t perform that action at this time.