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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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