Browse Source

hiddend lables on resize #21

pull/25/head
Alexey Velikiy 3 years ago
parent
commit
1541f3b8a6
  1. 6
      client/src/components/hastic_pod/index.ts

6
client/src/components/hastic_pod/index.ts

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

Loading…
Cancel
Save