Hi,
I am Creating Bar Chart using custom visual, it will not display bars in the report. I have used the same custom code that is downloaded from the Github.
constructor
constructor(options: VisualConstructorOptions) {
this.host = options.host;
this.selectionManager = options.host.createSelectionManager();
this.tooltipServiceWrapper = createTooltipServiceWrapper(this.host.tooltipService, options.element);
let svg = this.svg = d3.select(options.element)
.append('svg')
.classed('barChart', true);
console.log('4'); // I am not able to print this on console
this.barContainer = svg.append('g')
.classed('barContainer', true);
console.log('5');
this.xAxis = svg.append('g')
.classed('xAxis', true);
}
In the above code it will not print the '4' on console. And also update method has not been called.
Here I am not able to getting the 'this.svg', It will give the undefined value.
Am I doing something wrong in the constructor?