Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export interface GraphConfiguration {
- seriesName: string;
- color: string;
- }
- export interface StressTestAnalysis extends GraphConfiguration {
- curlevel: number;
- decrease: number;
- increase: number;
- yaxis: number[];
- data: number[];
- }
- public results: Array<StressTestAnalysis> = [];
- private _stressResults: Array<StressTestAnalysis> = [];
- @Input() set stressResults(value: Array<StressTestAnalysis>) {
- this._stressResults = value;
- }
- this.results.forEach(element => {
- if (element.data !== null)
- this.chartSeries.push({ data: element.data, name: element.seriesName, color: element.color });
- if (element.yaxis !== null)
- this.yAxisSeries.push({ yaxis: element.yaxis });
- });
- this.results = this._stressResults.map((result: any) => {
- return;
- });
Add Comment
Please, Sign In to add comment