@@ -118,14 +121,22 @@ export const Column = ({ lineGroup, data, flowChartData, interval, showBorder, s
))}
-
- {pv?.map((v, idx) => (
- {v.value?.toFixed(2) ?? '--'} {v.unit}
- ))}
-
+ {showLastValues && (
+
+ {pv?.map((v, idx) => (
+ {v.value?.toFixed(2) ?? '--'} {v.unit}
+ ))}
+
+ )}
-
+ {showLastValues && (
+
+ )}
)
}
+
+Column.defaultProps = {
+ pointCount: 2048
+}
diff --git a/src/pages/TelemetryView/index.jsx b/src/pages/TelemetryView/index.jsx
index f3056c8..80cb9e7 100644
--- a/src/pages/TelemetryView/index.jsx
+++ b/src/pages/TelemetryView/index.jsx
@@ -250,7 +250,14 @@ const rotorTorqueGroup = [
}
]
-const paramsGroups = [blockHeightGroup, blockSpeedGroup, pressureGroup, axialLoadGroup, hookWeightGroup, rotorTorqueGroup]
+export const paramsGroups = [
+ blockHeightGroup,
+ blockSpeedGroup,
+ pressureGroup,
+ axialLoadGroup,
+ hookWeightGroup,
+ rotorTorqueGroup
+]
const timePeriodCollection = [
{ value: '60', label: '1 минута' },
@@ -400,6 +407,7 @@ export default function TelemetryView({ idWell }) {
{paramsGroups.map((group, index) =>