📊 Engine Data Viewer

No data loaded
00:00:00
📈
Select channels from the sidebar
00:00 00:00
No channels selected

📊 Engine Data Viewer

No data loaded
00:00:00
📈
Select channels from the sidebar
00:00 00:00
No channels selected
clicking on a data point const elements = chart.getElementsAtEventForMode(event, 'nearest', { intersect: true }, false); if (elements.length > 0) return; // Get x value from pixel position (this is relative to current view) const relativeX = chart.scales.x.getValueForPixel(canvasX); if (relativeX === undefined || relativeX === null) return; // Convert relative position to absolute data index const dataIndex = currentStartIdx + Math.round(relativeX); if (dataIndex < 0 || dataIndex >= data.length) return; // Add marker const markerColor = markerColors[markerColorIdx % markerColors.length]; markerColorIdx++; const markerId = 'marker_' + Date.now(); markers.push({ id: markerId, dataIndex: dataIndex, color: markerColor }); updateMarkerAnnotations(); });