-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fixes #98)
- Loading branch information
1 parent
3e0c49b
commit 5c1fb93
Showing
18 changed files
with
69 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
import { OnDestroy, OnInit, OnChanges, ElementRef } from 'angular2/core'; | ||
export declare class Charts { | ||
constructor(element: ElementRef); | ||
} | ||
export declare class BaseChart implements OnInit, OnDestroy, OnChanges { | ||
private element; | ||
data: Array<any>; | ||
labels: Array<any>; | ||
options: any; | ||
chartType: string; | ||
series: Array<any>; | ||
colours: Array<any>; | ||
legend: boolean; | ||
private ctx; | ||
private cvs; | ||
private parent; | ||
private chart; | ||
private legendTemplate; | ||
private initFlag; | ||
private chartClick; | ||
private chartHover; | ||
private defaultsColours; | ||
constructor(element: ElementRef); | ||
ngOnInit(): void; | ||
ngOnChanges(changes: any): void; | ||
ngOnDestroy(): void; | ||
setLegend(): void; | ||
getColour(colour: Array<number>): any; | ||
getRandomInt(min: any, max: any): any; | ||
rgba(colour: any, alpha: any): string; | ||
click(evt: any): void; | ||
hover(evt: any): void; | ||
getChartBuilder(ctx: any, data: Array<any>, options: any): any; | ||
getDataObject(label: string, value: any): any; | ||
getChartData(labels: any, dataObject: any): any; | ||
private refresh(); | ||
} | ||
export declare const CHART_DIRECTIVES: Array<any>; | ||
import { OnDestroy, OnInit, OnChanges, ElementRef } from 'angular2/core'; | ||
export declare class Charts { | ||
constructor(element: ElementRef); | ||
} | ||
export declare class BaseChart implements OnInit, OnDestroy, OnChanges { | ||
private element; | ||
data: Array<any>; | ||
labels: Array<any>; | ||
options: any; | ||
chartType: string; | ||
series: Array<any>; | ||
colours: Array<any>; | ||
legend: boolean; | ||
private ctx; | ||
private cvs; | ||
private parent; | ||
private chart; | ||
private legendTemplate; | ||
private initFlag; | ||
private chartClick; | ||
private chartHover; | ||
private defaultsColours; | ||
constructor(element: ElementRef); | ||
ngOnInit(): void; | ||
ngOnChanges(changes: any): void; | ||
ngOnDestroy(): void; | ||
setLegend(): void; | ||
getColour(colour: Array<number>): any; | ||
getRandomInt(min: any, max: any): any; | ||
rgba(colour: any, alpha: any): string; | ||
click(evt: any): void; | ||
hover(evt: any): void; | ||
getChartBuilder(ctx: any, data: Array<any>, options: any): any; | ||
getDataObject(label: string, value: any): any; | ||
getChartData(labels: any, dataObject: any): any; | ||
private refresh(); | ||
} | ||
export declare const CHART_DIRECTIVES: Array<any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
///<reference path="../../node_modules/angular2/typings/browser.d.ts"/> | ||
///<reference path="../../typings/browser.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
"node_modules" | ||
], | ||
"files": [ | ||
"./ng2-charts.ts" | ||
"./ng2-charts.ts", | ||
"./components/charts/typings.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"ambientDependencies": { | ||
"require": "github:DefinitelyTyped/DefinitelyTyped/requirejs/require.d.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters