PowerBI-visuals | Microsoft Power BI visuals project provides high quality | Data Visualization library
kandi X-RAY | PowerBI-visuals Summary
kandi X-RAY | PowerBI-visuals Summary
The Microsoft Power BI visuals project provides high quality data visualization that you can use to extend Power BI. The project contains over 20 visualization types, the framework to run them, and the testing infrastructure that enables you to build high quality visualizations.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PowerBI-visuals
PowerBI-visuals Key Features
PowerBI-visuals Examples and Code Snippets
Community Discussions
Trending Discussions on PowerBI-visuals
QUESTION
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. 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. 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).
I'm trying to use Microsoft developing tools to build this package, but I still couldn't make it work.
TL;DR: I need help to edit a pbiviz
source code, package it back and use on Power BI.
ANSWER
Answered 2020-May-22 at 17:11Instead of zipping back, you can keep the original .pbviz
file, open it with a software like 7-zip
and replace the files you need. This way, Power BI still recognizes it like a valid custom visual.
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.
QUESTION
I'm trying to use webpack on a Typescript project which imports an emscripten-created webassembly library. This is all running inside a Power BI custom visual, which makes everything even more fun. I think this is extra hairy because of the Power BI context, and the Typescript, and the WebAssembly, but at the moment it seems like it might just be a webpack problem.
I have what I think is a paths issue, but I'm new to webpack and a bit lost. Compiling works, but the visual throws a "ChunkLoadError" for chunk 1. (There are two chunks.) Things that may or may not be relevant:
- I can direct the browser to "https://localhost:8080/assets/1.js" (or ...0.js) just fine.
- I found that (I think) because Power BI puts my code inside an iframe, initially the request url that webpack attempted was "https://app.powerbi.com/13.0.11428.218/assets/0.js". There was a baseUri property on the script tag it generated which caused this. Changing
output[publicPath]
to "https://localhost:8080/assets/" allowed the browser to download the chunks (I can see them come in successfully in the browser's dev tools), but webpack still complains. - Tried blowing away node_modules and reinstalling. No dice.
After the above, here's what the error looks like:
...ANSWER
Answered 2020-Mar-18 at 19:17It's working now. It turned out, I think, to be a combination of errors, made more problematic by the difficulty of debugging inside Power BI. Most of the insight came from this example and this template. I'm not sure, now after Thanksgiving break, which one of these things fixed it, but here are a few of the key changes:
Importing the WebAssembly: In visual.ts
I referenced the emscripten library like so:
QUESTION
I'm trying to follow this tutorial on creating a custom visual for Power BI : https://docs.microsoft.com/en-us/power-bi/developer/custom-visual-develop-tutorial
The test with the default code works properly when I connect to Power BI Cloud, as shown in the part"Testing the custom visual" step 8, of the tutorial.
The problem is when I try to add the class-level properties in the visual.ts file (after I deleted the code as indicated in the part "Developing the visual elements" step 2 of the tutorial ), I get the error "Cannot find name 'IVisualHost'".
...ANSWER
Answered 2019-Jul-02 at 07:40What I found out is that after a certain patch of npm, the ".api" folder isn't created any more. Instead, those files are stored under "node_modules/powerbi-visuals-api/". Also, the file "index.d.ts" replaces the former "PowerBI-visuals.d.ts".
But, I still have the 2 errors I described.
QUESTION
Would anyone please direct me to a clear example that explains how to properly construct a capabilities.json file specifically for matrix data view mapping? I'm aware of Microsoft's GitHub info regarding data binding, including its links to details about data roles and data view mapping, but it doesn't really address matrix data view mapping. I have found lots of info on categorical and table data mapping, but barely anything on matrix. Thanks.
...ANSWER
Answered 2019-Nov-05 at 18:52Here's an example of a capabilities json file that I've employed recently, which takes at least four inputs (using two groupings and two measures). The outcome results in a hierarchical view that uses the 'Series' data role as the parent for three column values.
JSON:
QUESTION
Above is the card from the tutorial at https://docs.microsoft.com/en-us/power-bi/developer/custom-visual-develop-tutorial. Here is the related code for the visual.
I would like the number to be shown as a percentage value, i.e. 15.4% which is how it is formatting in the measure.
I have searched github, microsoft, google, etc. for a solution to this issue. I also skimmed all the recommended questions on Stack Overflow before posting. Any help get the number formatting to match the measures formatting would be greatly appreciated.
Here is the related code for the visual. (sorry for the length)
visual.ts
...ANSWER
Answered 2019-Oct-30 at 20:46One way I always handle my formats (when not possible via the interface) is creating custom Measures that contain the format I want.
I created 2 cards to show unformatted and formatted values:
Measure formula : Fmt_value = FORMAT(SUM('Table'[Column1]),"#,##0.0%;(#,##0.0%)")
see pictures:
Formatting Numeric values as %
Adding a Measure for Formatting
Hope this helps.
QUESTION
I am using Power BI
for my business intelligence reports and I came across this nice chart in a Power BI Report.
Unfortunately, the author did not provide any information on the type of chart used (or how he created it). I have tried searching for the chart in the Custom Visuals
gallery of Power BI
(Custom Visuals) but could not find any chart which was a close match to it.
Any information or links on how to create it would be highly appreciated.
...ANSWER
Answered 2019-Oct-08 at 08:46The example chart is a Ribbon chart and is not custom visual, but is a standard visual in Power BI from about the May 2019 release.
An example file on how to use it is here
QUESTION
This appears to be the same issue another person posted earlier today (Could not connect Custom Visual server in powerBI) but I can supply additional information applicable in my own environment.
There is one answer recommending building the simple bar chart example, but I understand that the sample visual.ts that was created by the "new" command should build.
I am running the command from within the project folder where the pbiviz.json file was created with the "new" command.
Here is an image showing a directory listing for the folder as well as the output for the operation. What I see is that the initial error line is looking for a folder path starting directly under the project folder with "node_modules" -- and that is not there at all.
So, am I running into a problem with the version something or do I need to install something additional, or ???
I had been following the steps from the Readme.md documentation at Microsoft/PowerBI-visuals folder on github and have had no errors until this one.
...ANSWER
Answered 2019-Feb-17 at 19:03Try type in your directory: npm install
, and then pbiviz start
.
QUESTION
I'm trying to create a custom Force Directed Graph using the source code on Github (PowerBI-visuals-ForceGraph) and following the tutorial available at creating-a-custom-visual. Unfortunately, when I try to start the custom visual using the "pbiviz start" command in PowershellI I get an error stating "Invalid API version v2.3.0".
The "circlecard" example project used in the tutorial, which also uses API version v2.3.0 in it's pbiviz.json file, works just fine. So I'm clueless as to what's causing this error. I'm very new to trying out custom visuals on Power BI so any help with this is greatly appreciated.
Thanks in advance!
...ANSWER
Answered 2019-Jan-23 at 12:17PowerBI-visuals-ForceGraph visual was converted to use the new version of powerbi-visuals-tools@beta
If you installed the tools as global by command:
npm i powerbi-visuals-tools --global
and run pbiviz start
from global instance it will not work, because old tools doesn't support a new format of visual project.
npm run start
- start powerbi-visuals-tools from local instance
specified in package.json of the visual: https://github.com/Microsoft/PowerBI-visuals-ForceGraph/blob/master/package.json#L71
You need to install beta version of tool as global or run npm run start
to use the new tools
QUESTION
I'm trying to progress a Power BI Custom Visual react sample to the stage where it can access the dataViews of the parent visual in the React component. The sample in question is https://github.com/ignatvilesov/powerbi-visuals-react-sample Answers to this question may not require expertise in Power BI custom visuals, knowledge of React may be sufficient.
In the Update method of the visual it create the calls ReactDOM.render
like this: ReactDOM.render(React.createElement(App), this.element);
This works and creates a component that allows the react component to display elements in the visual.
When I attempt to pass the data options: VisualUpdateOptions like this: ReactDOM.render(React.createElement(App,{options} ), this.element);
, I am finding problems.
I don't understand how to get the options object using props, I've tried a variety of things, here is a sample of my attempts at an App.tsx
...ANSWER
Answered 2018-Oct-08 at 09:02I think you should try to pass the props object to create element inside the visual.ts (where you create an instance of the react app). Something like this:
QUESTION
So I'm trying to get a few settings to show up in a Power BI custom visual and here is my capabilities.json file:
...ANSWER
Answered 2017-Dec-19 at 00:21Apparently the solution here is that each corresponding object in your capabilities.json file also needs to map to an object in settings.ts. Once you have them correctly mapped there then they display on the front end.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PowerBI-visuals
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page