Cleanup.
This commit is contained in:
parent
6ca4c29e38
commit
99d0eb6d1c
@ -9,8 +9,6 @@ import {
|
|||||||
OnInit, OnChanges
|
OnInit, OnChanges
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Logger } from '@nsalaun/ng-logger';
|
|
||||||
|
|
||||||
import { Account } from '../accounts/account';
|
import { Account } from '../accounts/account';
|
||||||
import { DailyBalanceService } from '../accounts/dailyBalance.service';
|
import { DailyBalanceService } from '../accounts/dailyBalance.service';
|
||||||
|
|
||||||
@ -19,12 +17,6 @@ class DateRange {
|
|||||||
maxDate: Date;
|
maxDate: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
class xAxis {
|
|
||||||
balances: Date[];
|
|
||||||
expenses: Date[];
|
|
||||||
revenues: Date[];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'balance-chart',
|
selector: 'balance-chart',
|
||||||
template: '<div></div>'
|
template: '<div></div>'
|
||||||
@ -38,11 +30,9 @@ export class BalanceChartComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private elementRef: ElementRef,
|
private elementRef: ElementRef,
|
||||||
private logger: Logger,
|
|
||||||
private dailyBalanceService: DailyBalanceService,
|
private dailyBalanceService: DailyBalanceService,
|
||||||
@Inject('accountIdService') private accountIdService,
|
@Inject('accountIdService') private accountIdService,
|
||||||
) {
|
) {
|
||||||
this.logger.log("Constructor BalanceChartComponent")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadData() {
|
loadData() {
|
||||||
@ -70,8 +60,6 @@ export class BalanceChartComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
x = this.chart.x();
|
x = this.chart.x();
|
||||||
|
|
||||||
this.logger.log("x", x);
|
|
||||||
|
|
||||||
var balances = x.balances;
|
var balances = x.balances;
|
||||||
|
|
||||||
this.onUpdate.emit({
|
this.onUpdate.emit({
|
||||||
|
Loading…
Reference in New Issue
Block a user