Socket
Socket
Sign inDemoInstall

ng2-ganttchart

Package Overview
Dependencies
13
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ng2-ganttchart

this an angular 2 gantt chart component


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

#Angular 2 Gantt Chart Component

Setup App Module
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { GanttModule } from 'angular2-ganttchart';
import { App } from './App';

@NgModule({
    imports: [BrowserModule, GanttModule],
    declarations: [App],
    bootstrap: [App]
})
export class AppModule {}
Create First Gantt Chart Component

Main charts functionality provided by the chart component and its options property.

import { Component } from '@angular/core';
import {Gantt} from 'angular2-ganttchart'
@Component({
    selector: 'simple-gantt chart-example',
    template: `
        <gantt-chart [gantt]="gantt"></gantt-chart>
    `
})
export class App {
    constructor() {
        // StartDate
        // EndDate
        // ActualStartDate
        // ActualEndDate
        // ForcastedDate
        //Progress
        //Status
        //Gantt direction 
        this.gantt = new Gantt("01/01/2016", "11/30/2016", "01/20/2016", "11/15/2016", "", 100, 3,false);
    }
    gantt: Gantt;
}

Keywords

FAQs

Last updated on 16 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc