Skip to content

Commit

Permalink
#73 Fix Rendering Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Nov 27, 2023
1 parent b3733ab commit 10d8e8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion angular-client/src/app/context/app-context.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<landing-page *ngIf="showLandingPage; else elseBlock" [storage]="storage" />
<ng-template #elseBlock>
<graph-page [realTime]="true" [serverService]="serverService" [storage]="storage" [runId]="1" />
<graph-page [realTime]="false" [serverService]="serverService" [storage]="storage" [runId]="1" />
</ng-template>
4 changes: 2 additions & 2 deletions angular-client/src/pages/graph-page/graph-page.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
}

.graph {
flex: 4 1 auto;
flex: 1 1 auto;
}

.graph-caption {
flex: 1 0 100px;
flex: 0 0 100px;
margin-bottom: 8px;
margin-right: 8px;
}
7 changes: 5 additions & 2 deletions angular-client/src/pages/graph-page/graph/graph.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ export default class Graph implements OnInit {
}
};

this.chart = new ApexCharts(chartContainer, this.options);
//Weird rendering stuff with apex charts, view link to see why https://github.com/apexcharts/react-apexcharts/issues/187
setTimeout(() => {
this.chart = new ApexCharts(chartContainer, this.options);

this.chart.render();
this.chart.render();
}, 0);
}
}

0 comments on commit 10d8e8b

Please sign in to comment.