diff --git a/client/src/App.js b/client/src/App.js index 9c70d07..b0a1526 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -82,7 +82,9 @@ function useSensor(measurement, name, end, duration) { data.forEach(d => { const lbl = memoConvertTZ(isDST, d.time, duration.format); if (lbl !== lastLabel) { - ticks.push(d.time); + if (duration.len !== 'Month' || parseInt(lbl, 10) % 2 !== 0) { + ticks.push(d.time); + } lastLabel = lbl; } }); @@ -731,7 +733,9 @@ function MultiLineChart({title, measurement, dataKey, sensors, colors, end, dura data.forEach(d => { const lbl = memoConvertTZ(isDST, d.time, duration.format); if (lbl !== lastLabel) { - ticks.push(d.time); + if (duration.len !== 'Month' || parseInt(lbl, 10) % 2 !== 0) { + ticks.push(d.time); + } lastLabel = lbl; } });