diff --git a/src/components/d3/monitoring/D3HorizontalCursor.tsx b/src/components/d3/monitoring/D3HorizontalCursor.tsx index a8a1d12..af75ff0 100644 --- a/src/components/d3/monitoring/D3HorizontalCursor.tsx +++ b/src/components/d3/monitoring/D3HorizontalCursor.tsx @@ -139,7 +139,7 @@ const _D3HorizontalCursor = ({ if (!mouseState.visible || fixed) return let top = mouseState.y + offsetY - if (top + height >= sizes.chartsHeight) { + if (mouseState.y >= sizes.chartsHeight / 2) { setPosition('bottom') top = mouseState.y - offsetY - height } else { @@ -186,7 +186,9 @@ const _D3HorizontalCursor = ({ pointerEvents={fixed ? 'all' : 'none'} style={{ transition: 'opacity .1s ease-out', userSelect: fixed ? 'auto' : 'none' }} > -
+
{tooltipBodies[i]}
diff --git a/src/components/d3/monitoring/D3MonitoringCharts.tsx b/src/components/d3/monitoring/D3MonitoringCharts.tsx index cc27838..a0b939e 100644 --- a/src/components/d3/monitoring/D3MonitoringCharts.tsx +++ b/src/components/d3/monitoring/D3MonitoringCharts.tsx @@ -568,6 +568,7 @@ const _D3MonitoringCharts = >({ groups={groups} sizes={sizes} data={data} + height={height} /> diff --git a/src/pages/Telemetry/Archive/index.jsx b/src/pages/Telemetry/Archive/index.jsx index fa0fbb3..4db24f0 100755 --- a/src/pages/Telemetry/Archive/index.jsx +++ b/src/pages/Telemetry/Archive/index.jsx @@ -255,7 +255,7 @@ const Archive = memo(() => { plugins={{ menu: { enabled: false }, cursor: { - width: 200, + width: 220, render: cursorRender, } }} diff --git a/src/pages/Telemetry/TelemetryView/cursorRender.jsx b/src/pages/Telemetry/TelemetryView/cursorRender.jsx index 7f7245b..ad96f61 100644 --- a/src/pages/Telemetry/TelemetryView/cursorRender.jsx +++ b/src/pages/Telemetry/TelemetryView/cursorRender.jsx @@ -28,7 +28,7 @@ export const cursorRender = (group, data) => { {getChartIcon(chart)} {chart.shortLabel || chart.label} - {xFormat(chart)} + {xFormat(chart)} ) })} diff --git a/src/pages/Telemetry/TelemetryView/index.jsx b/src/pages/Telemetry/TelemetryView/index.jsx index c0c0242..884b23c 100755 --- a/src/pages/Telemetry/TelemetryView/index.jsx +++ b/src/pages/Telemetry/TelemetryView/index.jsx @@ -295,7 +295,7 @@ const TelemetryView = memo(() => { plugins={{ menu: { enabled: false }, cursor: { - width: 200, + width: 220, render: cursorRender, }, }}