cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ovdenysiuk Regular Visitor
Regular Visitor

Custom Visual. How to show/hide some formatting fields in my own custom visual?

For example, label position in Pie Chart:

when we chose "Outside" we don't see addition fields:

 

g.PNG

 

when we chose  "Inside" we see new addition fields:

gf.PNG

How to implement this logic in own project?

1 ACCEPTED SOLUTION

Accepted Solutions
v-evelk Established Member
Established Member

Re: Custom Visual. How to show/hide some formatting fields in my own custom visual?

Hello,

 

It is possible.

Please look at this example.

You need to do this inside enumerateObjectInstances method.

 

We will add such example into Power BI Cusom Visuals documentation.

 

Thanks!

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

1 REPLY 1
v-evelk Established Member
Established Member

Re: Custom Visual. How to show/hide some formatting fields in my own custom visual?

Hello,

 

It is possible.

Please look at this example.

You need to do this inside enumerateObjectInstances method.

 

We will add such example into Power BI Cusom Visuals documentation.

 

Thanks!

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com