Microsoft Power BI visuals
What is included
- Source code of all the visuals used in Power BI.
- A Playground app to help you try out the existing visuals, and experiment with the ones you have created.
To build the library and run the sample application you will need:
- A Windows 8.1 or Windows 10 64-bit machine with at least 4 GB of RAM
- Recommended IDE - Visual Studio Community 2015 (Free for use)
- Be sure to install the "Microsoft Web Developer Tools" optional feature. To install, go to Add/Remove Programs, right-click on Visual Studio, select Change, then Modify. Check the "Microsoft Web Developer Tools" checkbox and finish the install.
- You can install VSIX Package and use Visual Studio Template from it to create new Visual.
Clone a copy of the repo:
git clone https://github.com/Microsoft/PowerBI-visuals.git
Change to the PowerBI-visuals directory:
Install dev dependencies:
npm install # This command will install Gulp and all necessary modules
How to Engage, Contribute and Provide Feedback
There are many ways in which you can contribute to Power BI visuals:
- You can contribute fixes and new visuals to this repo, read the contribution guildelines.
- Submit bugs by opening a GitHub Issue here.
- Contribute to discussions on StackOverflow.
- Follow the Power BI Developer blog for updates.
- Follow Power BI on Twitter @mspowerbi.
- Getting started
- API specification
- Power BI visuals playground (see our visuals live in action)
- Power BI Homepage
Running PlayGround from Visual Studio
To run sample app:
src\PowerBIVisuals.slnin Visual Studio then under
src\Clients\PowerBIVisualsPlayground, right click on
index.htmlfile and select 'Set As Start Page'.
Right click on the project root folder then select 'Property Pages'. In the window opened select 'Build' and then in 'Before running startup page' select 'No Build'.
Task runner should have kicked off an incremental build task, which will build each time you make changes. NOTE: Sometimes the task runner might kick off two of these tasks at the same time, just close one of them.
Ctrl + F5 to launch the Playground.
Running Build and Test
Use the following commands to build and test:
gulp build # Build Power BI visuals into `build` folder gulp test # Run unit tests (requires 'PhantomJS', see Prerequisites above)
You will also need to do the following to run unit tests:
For Windows OS PhantomJS will be installed when you call
gulp test command. Also you can install PhantomJS using this command:
As result, local version of the PhantomJS will be downloaded and installed into the project. For other OS you have to install PhantomJS manually.
Copyright (c) 2015 Microsoft
See the LICENSE file for license rights and limitations (MIT).