2017-05-11 18:31:55 +03:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
|
|
|
|
|
import { SharedModule } from '../../shared.module';
|
|
|
|
|
|
|
|
|
|
import { ChartsRoutingModule, routedComponents } from './charts-routing.module';
|
2017-05-16 19:02:54 +03:00
|
|
|
import { ChartJsBarComponent } from './chart.js/bar/bar.component';
|
|
|
|
|
import { ChartJsLineComponent } from './chart.js/line/line.component';
|
|
|
|
|
import { ChartJsPieComponent } from './chart.js/pie/pie.component';
|
|
|
|
|
import { D3BarComponent } from './d3/bar/bar.component';
|
|
|
|
|
import { D3LineComponent } from './d3/line/line.component';
|
|
|
|
|
import { D3PieComponent } from './d3/pie/pie.component';
|
|
|
|
|
import { EchartsLineComponent } from './echarts/line/line.component';
|
|
|
|
|
import { EchartsPieComponent } from './echarts/pie/pie.component';
|
|
|
|
|
import { EchartsBarComponent } from './echarts/bar/bar.component';
|
2017-07-13 14:49:22 +03:00
|
|
|
import { AngularEchartsModule } from 'ngx-echarts';
|
2017-06-13 20:40:08 +03:00
|
|
|
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
|
|
|
|
import { ChartsModule as Ng2Charts } from 'ng2-charts/ng2-charts';
|
2017-05-16 19:02:54 +03:00
|
|
|
|
|
|
|
|
const components = [
|
|
|
|
|
ChartJsBarComponent,
|
|
|
|
|
ChartJsLineComponent,
|
|
|
|
|
ChartJsPieComponent,
|
|
|
|
|
D3BarComponent,
|
|
|
|
|
D3LineComponent,
|
|
|
|
|
D3PieComponent,
|
|
|
|
|
EchartsLineComponent,
|
|
|
|
|
EchartsPieComponent,
|
|
|
|
|
EchartsBarComponent,
|
|
|
|
|
];
|
2017-05-11 18:31:55 +03:00
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
SharedModule,
|
|
|
|
|
ChartsRoutingModule,
|
2017-06-13 20:40:08 +03:00
|
|
|
AngularEchartsModule,
|
|
|
|
|
NgxChartsModule,
|
|
|
|
|
Ng2Charts,
|
2017-05-11 18:31:55 +03:00
|
|
|
],
|
|
|
|
|
declarations: [
|
|
|
|
|
...routedComponents,
|
2017-05-16 19:02:54 +03:00
|
|
|
...components,
|
2017-05-11 18:31:55 +03:00
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
export class ChartsModule { }
|