简体   繁体   English

编辑 Power BI pbiviz 自定义视觉 package

[英]Edit Power BI pbiviz custom visual package

I'm looking for editing a custom visual I found in the internet (its tooltip shows some data I'd like to hide).我正在寻找编辑我在互联网上找到的自定义视觉效果(它的工具提示显示了一些我想隐藏的数据)。

I found out that the pbiviz file is actually a zipped folder , I extracted it and got a package.json and a folder with another .json containing the source code of the visual.我发现pbiviz文件实际上是一个压缩文件夹,我解压缩它并得到一个package.json和一个文件夹,其中包含另一个.json的源代码。 The source code is minified, but I managed to make the fix there.源代码被缩小了,但我设法在那里进行了修复。

Now I don't know how to pack the pbiviz file again.现在我不知道如何再次打包pbiviz文件。 I tried to zip the folder and rename it to .pbiviz , but Microsoft Power BI tell me it "isn't a valid custom visual" (I tried it also without editing, the error message is the same, what makes me conclude this isn't the right way to package it).我尝试 zip 文件夹并将其重命名为.pbiviz ,但 Microsoft Power BI 告诉我它“不是有效的自定义视觉对象”(我也尝试过没有编辑,错误消息是相同的,是什么让我得出结论这是'不是 package 它的正确方法)。

I'm trying to use Microsoft developing tools to build this package, but I still couldn't make it work.我正在尝试使用Microsoft 开发工具来构建这个 package,但我仍然无法使其工作。

TL;DR : I need help to edit a pbiviz source code, package it back and use on Power BI. TL;DR :我需要帮助来编辑pbiviz源代码 package 并在 Power BI 上使用。

Instead of zipping back, you can keep the original .pbviz file, open it with a software like 7-zip and replace the files you need.您可以保留原始.pbviz文件,而不是压缩回去,用7-zip之类的软件打开它并替换您需要的文件。 This way, Power BI still recognizes it like a valid custom visual.这样,Power BI 仍将其识别为有效的自定义视觉对象。

Important : it's necessary to replace the guid in every file for a new one, otherwise your fix will be replaced by the version on marketplace.重要提示:必须将每个文件中的guid替换为新文件,否则您的修复程序将被市场上的版本替换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM