Skip to content

Commit

Permalink
Hid typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakMukhopadhyay committed Jan 20, 2019
1 parent da1fbd7 commit de1c75e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/app/charts/faction-influence-chart.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';
import { EBGSFactionSchema } from '../typings';
import { Options, LineChartSeriesOptions } from 'highcharts';
// import { Options, LineChartSeriesOptions } from 'highcharts';
import { Chart } from 'angular-highcharts';
import { ThemeService } from '../services/theme.service';

Expand All @@ -11,7 +11,7 @@ import { ThemeService } from '../services/theme.service';

export class FactionInfluenceChartComponent implements OnInit, OnChanges {
@Input() factionData: EBGSFactionSchema;
options: Options;
options: any;
chart: Chart;
constructor(private themeService: ThemeService) { }

Expand All @@ -28,7 +28,7 @@ export class FactionInfluenceChartComponent implements OnInit, OnChanges {
allSystems.push(element.system);
}
});
const series: LineChartSeriesOptions[] = [];
const series: any[] = [];
history.sort((a, b) => {
if (a.updated_at < b.updated_at) {
return -1;
Expand Down
6 changes: 3 additions & 3 deletions src/app/charts/station-economies-chart.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';
import { EBGSStationSchema } from '../typings';
import { Options, PieChartSeriesOptions } from 'highcharts';
// import { Options, PieChartSeriesOptions } from 'highcharts';
import { Chart } from 'angular-highcharts';
import { ThemeService } from '../services/theme.service';

Expand All @@ -11,7 +11,7 @@ import { ThemeService } from '../services/theme.service';

export class StationEconomiesChartComponent implements OnInit, OnChanges {
@Input() stationData: EBGSStationSchema;
options: Options;
options: any;
chart: Chart;
constructor(private themeService: ThemeService) { }

Expand All @@ -29,7 +29,7 @@ export class StationEconomiesChartComponent implements OnInit, OnChanges {
y: element.proportion
})
});
let series: PieChartSeriesOptions[] = [];
let series: any[] = [];
series = [{
name: 'Economies',
data: data
Expand Down
6 changes: 3 additions & 3 deletions src/app/charts/system-influence-chart.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';
import { EBGSSystemChart } from '../typings';
import { Options, LineChartSeriesOptions } from 'highcharts';
// import { Options, LineChartSeriesOptions } from 'highcharts';
import { Chart } from 'angular-highcharts';
import { ThemeService } from '../services/theme.service';

Expand All @@ -11,7 +11,7 @@ import { ThemeService } from '../services/theme.service';

export class SystemInfluenceChartComponent implements OnInit, OnChanges {
@Input() systemData: EBGSSystemChart;
options: Options;
options: any;
chart: Chart;
constructor(private themeService: ThemeService) { }

Expand All @@ -36,7 +36,7 @@ export class SystemInfluenceChartComponent implements OnInit, OnChanges {
return 0;
}
});
const series: LineChartSeriesOptions[] = [];
const series: any[] = [];
allTimeFactions.forEach(faction => {
const data: [number, number][] = [];
this.systemData.faction_history.forEach(record => {
Expand Down
6 changes: 3 additions & 3 deletions src/app/charts/tick-chart.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';
import { Tick } from '../typings';
import { Options, LineChartSeriesOptions } from 'highcharts';
// import { Options, LineChartSeriesOptions } from 'highcharts';
import { Chart } from 'angular-highcharts';
import { ThemeService } from '../services/theme.service';
import * as moment from 'moment';
Expand All @@ -11,7 +11,7 @@ import * as moment from 'moment';
})
export class TickChartComponent implements OnInit, OnChanges {
@Input() tickData: Tick;
options: Options;
options: any;
chart: Chart;
constructor(private themeService: ThemeService) { }

Expand All @@ -22,7 +22,7 @@ export class TickChartComponent implements OnInit, OnChanges {
createChart(): void {
// Copied over to server\routes\chart_generator.js
const data: [number, number][] = [];
const series: LineChartSeriesOptions[] = [];
const series: any[] = [];
const firstTick = this.tickData[this.tickData.length - 1];
this.tickData.forEach(tick => {
const tickMoment = moment(tick.time);
Expand Down
3 changes: 2 additions & 1 deletion src/app/services/theme.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Injectable } from '@angular/core';
import { HighchartsDarkTheme, HighchartsLightTheme } from './highChartsTheme';
import { BehaviorSubject } from 'rxjs';
import { Highcharts } from 'angular-highcharts';
import * as Highcharts from 'highcharts';
// import { Highcharts } from 'angular-highcharts';
import cloneDeep from 'lodash-es/cloneDeep'

@Injectable()
Expand Down

0 comments on commit de1c75e

Please sign in to comment.