ng2 Chart

Adding Ng2 in your project

There following steps to add Ng2 Charts

  • First of all, you have to edit in app.modulefile ,which is located in your-project-name\src\app folder.

  • Import following files in app.module file

    import { ChartComponent}  from './chart/ng2-charts/chart.component';
  • Now open app-routing.module.ts file and import this file.

    import { ChartComponent }  from './chart/ng2-charts/chart.component';

    After this,add following in routes

    { path: 'chart/ng2-charts', component: ChartComponent }

Last updated