Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 8f19ede

Browse files
ghillertcppwfs
authored andcommitted
Fix D3 related type error
1 parent 384f7d7 commit 8f19ede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/app/analytics/charts/graph-chart/graph-chart.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ export class GraphChartComponent implements OnInit, DoCheck {
135135
const yTicksNumber = Math.floor(height / 25);
136136
const xTicksNumber = Math.floor(width / 25);
137137

138-
const minY: number = Number(d3.min(dataItemsToUse, function(d) { return d[1]; }));
139-
const maxY: number = Number(d3.max(dataItemsToUse, function(d) { return d[1]; }));
138+
const minY: number = Number(d3.min(dataItemsToUse, function(d) { return d[1] as number; }));
139+
const maxY: number = Number(d3.max(dataItemsToUse, function(d) { return d[1] as number; }));
140140
const padding = Math.max((maxY - minY) / 10.0, maxY / 4.0);
141141

142142
const margin = {top: 10, right: 10, bottom: 10, left: 10};

0 commit comments

Comments
 (0)