Skip to content
Permalink
Browse files

Added chart container creation to constructor

  • Loading branch information
dm-p committed Aug 16, 2019
1 parent 4081254 commit 20ee243e1ff5dbcff5e1b9fb91a22f7328c4e4d7
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/visual.ts
@@ -53,6 +53,11 @@ export class Visual implements IVisual {
constructor(options: VisualConstructorOptions) {
console.log('Visual constructor', options);
this.target = options.element;

/** Create the chart container when the visual loads */
this.container = d3.select(this.target)
.append('div')
.attr('id', 'my_dataviz');
}

public update(options: VisualUpdateOptions) {

0 comments on commit 20ee243

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