The Microsoft Power BI visuals project provides high quality data visualizations 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. The framework provides all the interfaces you need to integrate fully with Power BI's selection, filtering, and other UI experiences. The code is written in TypeScript so it's easier to build and debug. Everything compiles down to JavaScript and runs in modern web browsers. The visuals are built using D3 but you can use your favorite technology like WebGL, Canvas, or SVG. This gives you everything you need to build custom visualizations for Power BI.
To build the library and run the sample application you will need:
In order to build the Power BI visuals, ensure that you have Git, Node.js and gulp (npm install -g gulp
) installed.
Clone a copy of the repo:
git clone https://github.com/Microsoft/PowerBI-visuals.git
Change to the PowerBI-visuals directory:
cd PowerBI-visuals
Install dev dependencies:
npm install # This command will install all necessary modules
Make sure you first follow the Prerequisites & Onetime Setup
To run sample app:
Open src\PowerBIVisuals.sln
in Visual Studio then under src\Clients\PowerBIVisualsPlayground
, right click on index.html
file 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.
Make sure you first follow the Prerequisites & Onetime Setup
To run sample app:
Build the project
gulp build
Run gulp task
gulp run:playground
Use the following commands to build and run unit tests:
gulp test # Build and run unit tests (requires 'PhantomJS', see below)
To run unit tests on non-Windows environment you will need to install PhantomJS (PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.).
On Windows PhantomJS is installed automatically as part of gulp test
command.
There are many ways in which you can contribute to Power BI visuals:
Copyright (c) 2015 Microsoft
See the LICENSE file for license rights and limitations (MIT).