This commit is contained in:
crusader
2018-03-18 22:35:03 +09:00
parent 75df26732a
commit 51fb8ad8c2
124 changed files with 377 additions and 155 deletions

View 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 { }

View File

@@ -0,0 +1,6 @@
<nvd3 [options]="options"
[data]="data"
[config]="config"
[events]="events"
[api]="api"
[on-ready]="callback"></nvd3>

View 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();
});
});

View 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() {
}
}