Forum Discussion
How to customize and package existing power bi visual
I am in a situation wherein I need to make really minor change to existing visual and use it in my reports. E.g., I need to change the font size of label in tree map visual. This change is very trivial and specific to my requirement and doesn't need to be published back to main power bi source code. Here is what I have done so far,
1. Found the power bi source code from github (https://github.com/Microsoft/PowerBI-visuals-core)
2. I am able to set this environment up, make the change and the change is working as expected (changed the font size in .less file).
Issues:
1. As the link says, the code base is DEPRECATED. But this is the nearest code base I could find to customize the tree map.
2. I don't know how to package my change, so that I can import it into power bi desktop application.
Question:
1. Is this the right approach to customize existing power bi visual.
2. How to customize existing power bi visual and package it (I want to share the package with my team).
Thanks in advance for the help.
10 Replies
- v-chuncz-msftCommunity Support
You may check this link. If that doesn't work, you will need to follow the new tutorial to create the custom visual.
- somnathmrNew Member
Thanks for the quick turn around. Couple of things
1. The link points to a deprecated method of packaging power bi visuals. And it partly has same issues as (2) below.
2. The new tutorial is about creating a custom visual from scratch and packaging it. I have tried it, I am able to create the visual from scratch and package it. It works great. (My bad, I should had mentioned it).
But what I am really looking for is to make real minor change to existing visuals that power bi already has and package it.
As I have already mentioned, I have managed to apply a change to an existing power bi visual (change font size of tree map label) and that works as expected with the test page available in the source code. But my concern is the source code I got from github is marked deprecated. So can you please point me to the right version of source code and also how do I package it after making my change to existing power bi visual like tree map.
- v-chuncz-msftCommunity Support
- CubistAdvocate II
Has anyone heard when and if the included visuals will release updated code that builds easily with the newest API?
Why were they even deprecated in this first place?
- MawashiKidResolver II
Re: Has anyone heard when and if the included visuals will release updated code that builds easily with the newest API?
Not at this stage. If what you're looking for is a new "standalone" Power BI Visuals CLI version of the tremap.ts code,
I don't believe CORE code version has been ported to new CLI version yet. I'm regularly checking for
new updates on Github. Some code samples have been ported to new CLI version but not all.Re: Why were they even deprecated in this first place?
First, I'd say that Deprecated doesn't necessarilly mean you won't be able to run it on Power BI Desktop or Online. I'm currently
using a CORE version of the waffechart.ts visual and can't really complain as it does the job fine. I wish there was a standalone CLI version I could play with, but I guess we have to give the runner a chance...Why the decided to list CORE as Deprecated ? I'd say that even if the CORE application offered a fair amount of informations and examples, the CORE architecture was a bit too heavy to deal with and took a bit of time and patience to configure.... After receiving some feed back from Power BI Community developers, I guess Microsoft Power BI extensibility team came to conclusion it was time to go back to the drawing board and redesign a lighter approach. I believe they'll stick on the CLI approach from now on. [ I hope ;) ... ]