This project shows how to integrate D3.js with Angular 2.
We'll implement a few D3.js examples described in bl.ocks.org in Angular2.
- 01 Line Chart
- 02 Multi-Series Line Chart
- 03 Bar Chart
- 04 Stacked Bar Chart
- 05 Brush & Zoom
- 06 Pie Chart
- 07 Donut Chart
To follow these examples you need to install Node.js and npm if they are not already installed on your computer.
Verify that you are running at least node v6.x.x and npm 3.x.x by running node -v and npm -v in a terminal / console window. Older versions may produce errors.
- Clone this repo into a new project folder.
$ git clone https://github.com/datencia/d3js-angular2-example.git
$ cd d3js-angular2-example
- Navigate to every example and follow the instructions provided.