ing
This commit is contained in:
20
src/commons/chart/area/area.module.ts
Normal file
20
src/commons/chart/area/area.module.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { NvD3Module } from 'commons/chart/core/nvd3/nvd3.module';
|
||||
|
||||
import { AreaComponent } from './component/area.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
NvD3Module,
|
||||
],
|
||||
exports: [
|
||||
AreaComponent,
|
||||
],
|
||||
declarations: [
|
||||
AreaComponent,
|
||||
],
|
||||
})
|
||||
export class AreaModule { }
|
||||
6
src/commons/chart/area/component/area.component.html
Normal file
6
src/commons/chart/area/component/area.component.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<nvd3 [options]="options"
|
||||
[data]="data"
|
||||
[config]="config"
|
||||
[events]="events"
|
||||
[api]="api"
|
||||
[on-ready]="callback"></nvd3>
|
||||
25
src/commons/chart/area/component/area.component.spec.ts
Normal file
25
src/commons/chart/area/component/area.component.spec.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AreaComponent } from './area.component';
|
||||
|
||||
describe('AreaComponent', () => {
|
||||
let component: AreaComponent;
|
||||
let fixture: ComponentFixture<AreaComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ AreaComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(AreaComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
16
src/commons/chart/area/component/area.component.ts
Normal file
16
src/commons/chart/area/component/area.component.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'of-chart-area',
|
||||
templateUrl: './area.component.html',
|
||||
styleUrls: ['./area.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
})
|
||||
export class AreaComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user