Forum Discussion
bfialkoff
7 years agoFrequent Visitor
Inherit from other visuals?
I want to make a small change to an existing visual but I dont want to have to worry about maintainence. I know that I can place the link to the git repo in my package.json. Is it then possible to inherit from the visual and simply override a function? I would like it to look something like this
class MyVisual extends OtherVisual {
constructor(options: VisualConstructorOptions){
super(options: VisualConstructorOptions);
}
public update(options){
//my new code here
super.update(options);
}
}Is it possible to do something like this? Any answer would be helpful!
import ChicletSlicer = powerbi.extensibility.visual.ChicletSlicer;
Have you tried such an import?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
13 Replies
- v-viigCommunity Champion
Yes, it's possible. You just need to add another visual into compilition pipeline and import required dependencies.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals