Guest User

Untitled

a guest
Mar 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. export interface GraphConfiguration {
  2.  
  3. seriesName: string;
  4. color: string;
  5. }
  6. export interface StressTestAnalysis extends GraphConfiguration {
  7.  
  8. curlevel: number;
  9. decrease: number;
  10. increase: number;
  11. yaxis: number[];
  12. data: number[];
  13. }
  14.  
  15. public results: Array<StressTestAnalysis> = [];
  16. private _stressResults: Array<StressTestAnalysis> = [];
  17.  
  18. @Input() set stressResults(value: Array<StressTestAnalysis>) {
  19. this._stressResults = value;
  20. }
  21.  
  22. this.results.forEach(element => {
  23. if (element.data !== null)
  24. this.chartSeries.push({ data: element.data, name: element.seriesName, color: element.color });
  25. if (element.yaxis !== null)
  26. this.yAxisSeries.push({ yaxis: element.yaxis });
  27. });
  28.  
  29. this.results = this._stressResults.map((result: any) => {
  30.  
  31. return;
  32. });
Add Comment
Please, Sign In to add comment