From 1d14036e3f32b256bf912e4331862ad8a38d09b8 Mon Sep 17 00:00:00 2001 From: Yuqiu Wang Date: Mon, 5 Apr 2021 12:28:48 -0400 Subject: [PATCH] fix crosshair title --- client/src/views/prometheusgraph.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/views/prometheusgraph.tsx b/client/src/views/prometheusgraph.tsx index 0a7035e..f51b43e 100644 --- a/client/src/views/prometheusgraph.tsx +++ b/client/src/views/prometheusgraph.tsx @@ -92,9 +92,11 @@ export default class PrometheusGraph extends Base { /> ({title: 'Time', value: new Date(d[0].x * 1000).toLocaleTimeString()}) + } itemsFormat={ d => [ - {title: 'Time', value: new Date(d[0].x * 1000).toLocaleTimeString()}, {title: 'Percent', value: `${(d[0].y * 100).toFixed(2)}%`}, ] }