From 3dc37dc34dad41995f2f6beed6a63b505f03c51a Mon Sep 17 00:00:00 2001 From: nymkappa Date: Tue, 19 Jul 2022 08:00:11 +0200 Subject: [PATCH] Fix block predition graph x axis labels --- .../block-prediction-graph/block-prediction-graph.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.ts b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.ts index c708c7574..e88dc07be 100644 --- a/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.ts +++ b/frontend/src/app/components/block-prediction-graph/block-prediction-graph.component.ts @@ -156,7 +156,7 @@ export class BlockPredictionGraphComponent implements OnInit { type: 'category', axisLine: { onZero: true }, axisLabel: { - formatter: val => formatterXAxisTimeCategory(this.locale, this.timespan, parseInt(val, 10)), + formatter: val => formatterXAxisTimeCategory(this.locale, this.timespan, parseInt(val, 10) * 1000), align: 'center', fontSize: 11, lineHeight: 12,