Forum Discussion
Inherit from other visuals?
- 7 years ago
import ChicletSlicer = powerbi.extensibility.visual.ChicletSlicer;
Have you tried such an import?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
The same what is listed in Chiclet Slicer: https://github.com/Microsoft/PowerBI-visuals-ChicletSlicer/blob/master/pbiviz.json#L20
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Can you clarify what does the import statement look like? I have followed your instructions, I currently have the link to chiclet-slicers github repo listed in my depenencies, I have copied the urls in the externalJS, and tsconfig. I don't know what to do from here. I've tried various import statements nothing seems to work.
- v-viig7 years agoCommunity Champion
import ChicletSlicer = powerbi.extensibility.visual.ChicletSlicer;
Have you tried such an import?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- bfialkoff7 years agoFrequent Visitor
Accepted too soon. The import worked but the viusal doesn't:
import ChicletSlicer = powerbi.extensibility.visual.ChicletSlicer; export class myVisual extends ChicletSlicer { constructor(options){ super(options) } public update(options) { super.update(options) } }for a moment it compiled but it showed me the the developer visual in its default state, the one with the update counter. Now it doesn't even do that. I get the following error printout:
(in case the image is too small)
error TYPESCRIPT /src/visual.ts : (1,54) Property 'ChicletSlicer' does not exist on type 'typeof visual'. error TYPESCRIPT /src/visual.ts : (1,54) Namespace 'powerbi.extensibility.visual' has no exported member 'ChicletSlicer'. error TYPESCRIPT /visualPlugin.ts : (8,158) Property 'Visual' does not exist on type 'typeof testInherticane714AE1C1ED164D2482B6C0D7F435F057'.
- v-viig7 years agoCommunity Champion
Did you put a proper class name into visualClassName?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- Anonymous7 years agoNot applicable
Guys im new to power bi, i Could'nt understand what your Conversations is about? What is that code?
Please do explain me , i want learn.
- v-viig7 years agoCommunity Champion
This is about extending the exisitng Custom Visuals.
To find out more about the code please look into documentation.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals