Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ihud
New Member

Custom Visuals Documentation

Hello, everyone!

I want to create custom visuals and watch creating custom visual by Sachin.

But i want more infirmation about powerbi library.

Also read https://github.com/Microsoft/PowerBI-visuals/wiki

There is not all information.

Where i can find samething more?

 

1 ACCEPTED SOLUTION
itayrom
Resolver II
Resolver II

The current custom visuals API is overwhelmingly under-documented. The main reason for this, I believe, is that large portions of it are intended to be inaccessible or replaced in the new API currently developed by the custom visuals dev team(Along with a new CLI tool to replace the DevTools).

 

The following is the github project where they're documenting the new API and related tools, but besides being updated quite slowly, it is currently irrelevant in part, since the new API is yet to be available-

https://github.com/Microsoft/PowerBI-visuals-docs 

 

In the meantime, if you'd like to dive deeper into developing custom visuals using the current API, my recommendations are:

1. Get familiar with TypeScript and the D3 javascript library(Will be useful in the new API as well).

2. Go through code of existing visuals available via the custom-visuals github project, especially that of visuals that implement behaviors/features relevant for your own visuals.

https://github.com/Microsoft/PowerBI-visuals

3. When you encounter interesting/useful/hard-to-understand modules, classes, interfaces and functions in said project, don't be afraid to see how they are defined/implemented and how they're being used by other visuals.

4. Do a lot of trial and error(Probably the most important thing on this list).

5. Search this forum for posts relevant to issues you encounter and don't be afraid to post questions of your own.

 

Note:

Some API functionality will be available during development in the DevTools and real-time testing, but will not work once you export the visual and use it to your reports. This is due to a security feature called sandboxing, which prevents unofficial/unapproved custom visuals from using functionality deemed exploitable by Microsoft. Such functionality will not be available in the new API.

 

Tip:

If you'd like to view the source code of custom visuals from the gallery that are not present in the custom-visuals project, you can extract the .pbiviz files(using 7zip, for example) and their TypeScript file will usually be available in its source tree.

View solution in original post

1 REPLY 1
itayrom
Resolver II
Resolver II

The current custom visuals API is overwhelmingly under-documented. The main reason for this, I believe, is that large portions of it are intended to be inaccessible or replaced in the new API currently developed by the custom visuals dev team(Along with a new CLI tool to replace the DevTools).

 

The following is the github project where they're documenting the new API and related tools, but besides being updated quite slowly, it is currently irrelevant in part, since the new API is yet to be available-

https://github.com/Microsoft/PowerBI-visuals-docs 

 

In the meantime, if you'd like to dive deeper into developing custom visuals using the current API, my recommendations are:

1. Get familiar with TypeScript and the D3 javascript library(Will be useful in the new API as well).

2. Go through code of existing visuals available via the custom-visuals github project, especially that of visuals that implement behaviors/features relevant for your own visuals.

https://github.com/Microsoft/PowerBI-visuals

3. When you encounter interesting/useful/hard-to-understand modules, classes, interfaces and functions in said project, don't be afraid to see how they are defined/implemented and how they're being used by other visuals.

4. Do a lot of trial and error(Probably the most important thing on this list).

5. Search this forum for posts relevant to issues you encounter and don't be afraid to post questions of your own.

 

Note:

Some API functionality will be available during development in the DevTools and real-time testing, but will not work once you export the visual and use it to your reports. This is due to a security feature called sandboxing, which prevents unofficial/unapproved custom visuals from using functionality deemed exploitable by Microsoft. Such functionality will not be available in the new API.

 

Tip:

If you'd like to view the source code of custom visuals from the gallery that are not present in the custom-visuals project, you can extract the .pbiviz files(using 7zip, for example) and their TypeScript file will usually be available in its source tree.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.