From 574e5cf10ab3240335b1fcbb85e4fa18640f1ad2 Mon Sep 17 00:00:00 2001 From: Gala Date: Tue, 16 Aug 2022 13:42:48 +0200 Subject: [PATCH] change legend --- explorer/src/components/UptimeChart.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/explorer/src/components/UptimeChart.tsx b/explorer/src/components/UptimeChart.tsx index 5c67623aab..7f6ed43551 100644 --- a/explorer/src/components/UptimeChart.tsx +++ b/explorer/src/components/UptimeChart.tsx @@ -23,7 +23,7 @@ export const UptimeChart: React.FC = ({ title, xLabel, yLabel, uptim const color = theme.palette.text.primary; React.useEffect(() => { if (uptimeStory.data?.history) { - const allFormattedChartData: FormattedChartData = [['Date', 'Routing Score']]; + const allFormattedChartData: FormattedChartData = [['Date', 'Score']]; uptimeStory.data.history.forEach((eachDate) => { const formattedDateUptimeRecord: FormattedDateRecord = [ format(new Date(eachDate.date), 'MMM dd'), @@ -34,7 +34,7 @@ export const UptimeChart: React.FC = ({ title, xLabel, yLabel, uptim setFormattedChartData(allFormattedChartData); } else { const emptyData: any = [ - ['Date', 'Routing Score'], + ['Date', 'Score'], ['Jul 27', 10], ]; setFormattedChartData(emptyData); @@ -87,7 +87,7 @@ export const UptimeChart: React.FC = ({ title, xLabel, yLabel, uptim }, }, vAxis: { - // % Routing Score vertical + // vertical / % Routing Score viewWindow: { min: 0, max: 100,