diff --git a/src/reports/ChartReportPage.jsx b/src/reports/ChartReportPage.jsx index 63c4ceaa45..3ce5dca21c 100644 --- a/src/reports/ChartReportPage.jsx +++ b/src/reports/ChartReportPage.jsx @@ -1,7 +1,7 @@ import dayjs from 'dayjs'; import React, { useState } from 'react'; import { - FormControl, InputLabel, Select, MenuItem, + FormControl, InputLabel, Select, MenuItem, useTheme, } from '@mui/material'; import { CartesianGrid, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis, @@ -21,6 +21,7 @@ import useReportStyles from './common/useReportStyles'; const ChartReportPage = () => { const classes = useReportStyles(); + const theme = useTheme(); const t = useTranslation(); const positionAttributes = usePositionAttributes(t); @@ -141,6 +142,7 @@ const ChartReportPage = () => { }} > formatTime(value, 'time')} @@ -148,16 +150,18 @@ const ChartReportPage = () => { scale="time" /> value.toFixed(2)} domain={[minValue - valueRange / 5, maxValue + valueRange / 5]} /> - + [value, positionAttributes[key]?.name || key]} labelFormatter={(value) => formatTime(value, 'seconds')} /> - +