aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-25 17:16:37 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-25 17:16:37 -0700
commit206a5197536a1615371bfb9e53cadee7cc4e6ff7 (patch)
tree4bf2c2e122628ec81d84d2af4ea389a84f108a1e /modern/src/reports
parentaba34cf75577423a63a8a73dfe634cf0841f81db (diff)
downloadtrackermap-web-206a5197536a1615371bfb9e53cadee7cc4e6ff7.tar.gz
trackermap-web-206a5197536a1615371bfb9e53cadee7cc4e6ff7.tar.bz2
trackermap-web-206a5197536a1615371bfb9e53cadee7cc4e6ff7.zip
Limit chart decimals (fix #945)
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/ChartReportPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/reports/ChartReportPage.js b/modern/src/reports/ChartReportPage.js
index 860d99f0..a26c4111 100644
--- a/modern/src/reports/ChartReportPage.js
+++ b/modern/src/reports/ChartReportPage.js
@@ -105,7 +105,7 @@ const ChartReportPage = () => {
}}
>
<XAxis dataKey="fixTime" />
- <YAxis type="number" domain={[minValue - valueRange / 5, maxValue + valueRange / 5]} />
+ <YAxis type="number" tickFormatter={(value) => value.toFixed(2)} domain={[minValue - valueRange / 5, maxValue + valueRange / 5]} />
<CartesianGrid strokeDasharray="3 3" />
<Tooltip formatter={(value, key) => [value, positionAttributes[key].name]} />
<Line type="monotone" dataKey={type} />