Skip to content

Commit

Permalink
Change legends in data display
Browse files Browse the repository at this point in the history
  • Loading branch information
hulxv committed Jan 5, 2022
1 parent b81f570 commit fe2f5ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions renderer/components/DataDisplay/BarChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion renderer/components/DataDisplay/LineChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}}
Expand Down
2 changes: 1 addition & 1 deletion renderer/components/DataDisplay/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function TableComponent({ data }) {
<Table variant='striped'>
<Thead>
<Tr>
<Th>Date</Th>
<Th>Date / Time</Th>
<Th>interface</Th>
<Th isNumeric>Total</Th>
<Th isNumeric>Download</Th>
Expand Down

0 comments on commit fe2f5ca

Please sign in to comment.