Skip to content

Commit

Permalink
fix: Add Label to chart config exports
Browse files Browse the repository at this point in the history
  • Loading branch information
paviad committed Mar 20, 2019
1 parent 29af1b6 commit 9e3dae1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export {
ScaleUnion,
ThemeService,
BaseChartDirective,
Label,
} from 'ng2-charts';

export type AngularChart = ng2Charts.AngularChart<AppChartMetaConfig>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export function ng2ChartsLine(_options: any): Rule {
return chain([
externalSchematic('@schematics/angular', 'component', _options),
buildMetaConfig(_options),
buildMetaConfig(_options),
ng2ProcessTree(_options, newCode, newMarkup, newImports),
]);
}
2 changes: 1 addition & 1 deletion projects/ng2-charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng2-charts",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"peerDependencies": {
"@angular/common": "^7.2.0",
"@angular/core": "^7.2.0",
Expand Down
1 change: 1 addition & 0 deletions src/app/app-chart-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export {
ScaleUnion,
ThemeService,
BaseChartDirective,
Label,
} from 'ng2-charts';

export type AngularChart = ng2Charts.AngularChart<AppChartMetaConfig>;
Expand Down
10 changes: 8 additions & 2 deletions src/app/line-chart/line-chart.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { Color, Label, BaseChartDirective } from 'ng2-charts';
import * as pluginAnnotations from 'chartjs-plugin-annotation';
import { AppChartMetaConfig, ChartDataSetsLine, ChartOptions } from '../app-chart-config';
import {
AppChartMetaConfig,
ChartDataSetsLine,
ChartOptions,
Color,
Label,
BaseChartDirective
} from '../app-chart-config';

@Component({
selector: 'app-line-chart',
Expand Down

0 comments on commit 9e3dae1

Please sign in to comment.