diff options
author | guochuyicmri <guochuyi@chinamobile.com> | 2019-04-03 18:13:54 +0800 |
---|---|---|
committer | guochuyicmri <guochuyi@chinamobile.com> | 2019-04-03 18:14:02 +0800 |
commit | e5373722e30a8d33070a8ea9c304836673893d93 (patch) | |
tree | 550698c764ecc280a210a03e9a4a4b2c98905f8a /usecaseui-portal/src/app/components/charts/bar/bar.component.ts | |
parent | d5f7ee6e80bb55f2baf89ee5e669ef6829fd20fd (diff) |
Modify the overall code lincence and comments
Change-Id: I821814d97f9e8b8b683d0a2850ea73a104118fd9
Issue-ID: USECASEUI-212
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/components/charts/bar/bar.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/components/charts/bar/bar.component.ts | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/usecaseui-portal/src/app/components/charts/bar/bar.component.ts b/usecaseui-portal/src/app/components/charts/bar/bar.component.ts index 38a2fc0d..ee76dfee 100644 --- a/usecaseui-portal/src/app/components/charts/bar/bar.component.ts +++ b/usecaseui-portal/src/app/components/charts/bar/bar.component.ts @@ -1,3 +1,18 @@ +/* + Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ import { Component, OnInit, Input } from '@angular/core'; import { SimpleChanges } from '@angular/core/src/metadata/lifecycle_hooks'; @@ -8,9 +23,9 @@ import { SimpleChanges } from '@angular/core/src/metadata/lifecycle_hooks'; }) export class BarComponent implements OnInit { - // 图形数据 + // chart Data @Input() chartData; - // 初始化数据 + // init Data @Input() initData; constructor() { } @@ -32,18 +47,18 @@ export class BarComponent implements OnInit { } ngOnChanges(changes: SimpleChanges) { - // 当有实例的时候再执行,相当于第一次不执行下面方法 + // Execute when there is an instance, which is equivalent to not executing the following method for the first time. if (this.chartIntance) { this.chartDataChange() } } - // 初始化图形高度 + // Initialize the height of the graphic initOpts: any; - // 折线图配置 + // Line chart configuration barOption: any; - // 实例对象 + // Instance object chartIntance: any; - // 数据变化 + // Data change updateOption: any; chartDataChange() { this.updateOption = this.chartData; |