Skip to content

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.

License

Notifications You must be signed in to change notification settings

jkeech/PowerBI-visuals

 
 

Repository files navigation

Microsoft Power BI visuals

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.

What is included

  1. Source code of all the visuals used in Power BI.
  2. A Playground app to help you try out the existing visuals, and experiment with the ones you have created.

Getting Started

Prerequisites

To build the library and run the sample application you will need:

  • Git
  • Node.js
  • 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.

One-Time Setup

In order to build the Power BI visuals, ensure that you have Git and Node.js 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 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:

Documentation

Additional instructions

Running PlayGround from Visual Studio

Make sure you first follow the Prerequisites & Onetime Setup

To run sample app:

  1. Open src\PowerBIVisuals.sln in Visual Studio then under src\Clients\PowerBIVisualsPlayground, right click on index.html file and select 'Set As Start Page'.

  2. 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'.

  3. 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.

  4. Ctrl + F5 to launch the Playground.

Running PlayGround without Visual Studio

Make sure you first follow the Prerequisites & Onetime Setup

To run sample app:

  1. Run gulp task
gulp run: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 below)

Installing PhantomJS

You will also need to do the following to run unit tests:

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.).

For Windows OS PhantomJS will be installed when you call gulp test command. Also you can install PhantomJS using this command:

gulp install:phantomjs

As result, local version of the PhantomJS will be downloaded and installed into the project. For other OS you have to install PhantomJS manually.

Copyrights

Copyright (c) 2015 Microsoft

See the LICENSE file for license rights and limitations (MIT).

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 85.2%
  • JavaScript 12.9%
  • CSS 1.9%