Gene
  • Introduction
  • Folder Structure
  • Installation
  • Layouts
  • Translate App
  • Adding/Deleting Menu & Component
  • Adding Widgets in Component
  • Seed Project
  • Style Customization
  • RTL
  • Components
    • Chat
    • Calendar
    • Inbox
    • Editor
    • Material Icons
    • ng2 Chart
    • UI Component
    • Drag and Drop
    • Sortable js
    • Tables
      • Fullscreen
      • Selection
      • Pinning
      • Sorting
      • Paging
      • Editing
      • Filter
    • Forms
    • Maps
  • Deployment
  • Credits
  • Template Update
  • FAQ's (Frequently Asked Questions)
  • Changelog
  • Customer Support
    • Hire Us
Powered by GitBook
On this page

Was this helpful?

  1. Components

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 }
PreviousMaterial IconsNextUI Component

Last updated 6 years ago

Was this helpful?