in src/barChart.ts [464:489]
constructor(options: VisualConstructorOptions) {
this.localizationManager = options.host.createLocalizationManager();
this.events = options.host.eventService;
this.host = options.host;
this.selectionManager = options.host.createSelectionManager();
this.selectionManager.registerOnSelectCallback(() => {
this.syncSelectionState(this.barSelection, this.selectionManager.getSelectionIds() as ISelectionId[]);
});
this.tooltipServiceWrapper = createTooltipServiceWrapper(this.host.tooltipService, options.element);
let svg = this.svg = select(options.element)
.append<SVGElement> ("div")
.classed("divContainer", true)
.append<SVGElement> ("svg")
.classed("barChart", true);
this.barContainer = svg.append<SVGElement> ("g")
.classed("barContainer", true);
this.xAxis = svg.append<SVGElement> ("g")
.classed("xAxis", true);
this.divContainer = select(".divContainer");
}