|
|
@ -79,7 +79,7 @@ export class HasticPod extends LinePod { |
|
|
|
|
|
|
|
|
|
|
|
renderMetrics() { |
|
|
|
renderMetrics() { |
|
|
|
super.renderMetrics(); |
|
|
|
super.renderMetrics(); |
|
|
|
console.log('render my metrics'); |
|
|
|
this.renderSegments(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public fetchData(): void { |
|
|
|
public fetchData(): void { |
|
|
@ -197,6 +197,10 @@ export class HasticPod extends LinePod { |
|
|
|
|
|
|
|
|
|
|
|
protected renderSegments(): void { |
|
|
|
protected renderSegments(): void { |
|
|
|
const segments = this._segmentSet.getSegments(); |
|
|
|
const segments = this._segmentSet.getSegments(); |
|
|
|
|
|
|
|
// TODO: this is a bad hack, don't know why
|
|
|
|
|
|
|
|
if(this.metricContainer == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
this.segmentsContainer = this.metricContainer |
|
|
|
this.segmentsContainer = this.metricContainer |
|
|
|
.append('g') |
|
|
|
.append('g') |
|
|
|
.attr('class', 'segmentsContainer') |
|
|
|
.attr('class', 'segmentsContainer') |
|
|
|