From fe2f5ca3120ef4fe295748c67024ccbe1591ae99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CHulxv=E2=80=9D?= Date: Thu, 6 Jan 2022 00:56:38 +0200 Subject: [PATCH] Change legends in data display --- renderer/components/DataDisplay/BarChart.js | 4 ++-- renderer/components/DataDisplay/LineChart.js | 2 +- renderer/components/DataDisplay/Table.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/renderer/components/DataDisplay/BarChart.js b/renderer/components/DataDisplay/BarChart.js index 8e1c830..d89b9e8 100644 --- a/renderer/components/DataDisplay/BarChart.js +++ b/renderer/components/DataDisplay/BarChart.js @@ -51,7 +51,7 @@ export default function BarChart({ data, axisBottomRotation = 0 }) { legend: config?.apperance?.barChart?.layout === "horizontal" ? "Usage (GB)" - : "Date", + : "Date / Time", legendPosition: "middle", legendOffset: 32, }} @@ -61,7 +61,7 @@ export default function BarChart({ data, axisBottomRotation = 0 }) { tickRotation: 0, legend: config?.apperance?.barChart?.layout === "horizontal" - ? "Date" + ? "Date / Time" : "Usage (GB)", legendPosition: "middle", legendOffset: -40, diff --git a/renderer/components/DataDisplay/LineChart.js b/renderer/components/DataDisplay/LineChart.js index ede1079..d2756cc 100644 --- a/renderer/components/DataDisplay/LineChart.js +++ b/renderer/components/DataDisplay/LineChart.js @@ -26,7 +26,7 @@ export default function LineChart({ data, axisBottomRotation = 0 }) { tickSize: 5, tickPadding: 10, tickRotation: axisBottomRotation, - legend: "Date", + legend: "Date / Time", legendOffset: 36, legendPosition: "middle", }} diff --git a/renderer/components/DataDisplay/Table.js b/renderer/components/DataDisplay/Table.js index fe83b8c..a987216 100644 --- a/renderer/components/DataDisplay/Table.js +++ b/renderer/components/DataDisplay/Table.js @@ -5,7 +5,7 @@ function TableComponent({ data }) { - +
DateDate / Time interface Total Download