Forum Discussion
moises_martinez
9 years agoFrequent Visitor
How add svg in my custom visual???
Hello! I want to add a svg in my custom visual. In all example i saw: public init(options: VisualInitOptions): void { var svg = this.svg = d3.select(options.element.get(0)).append(...
- 9 years ago
Thank you!!!
I have reinstalled D3 according to ...
TedPattison
9 years agoMicrosoft Employee
The programming model for Power BI custom visuals changes over the summer in 2016. In the older model, there is an init method for each custom visuals. When the model changed, developers now write init code for one-time load operations in class constructor and there is no longer an init method for custom visuals in the new model.
The example you are looking at is based on the old model and you should be able to move that code from the old init method into the constructor.