NERV-UI DOCS
inspection terminal
live
doc.access // online
NERV COMPONENT INSPECTION
route integrity monitored

Sync Ratio Chart

Pure SVG dual sinusoidal waveform chart with continuous oscilloscope-like movement. Zero external charting dependencies. Uses requestAnimationFrame for smooth real-time wave animation after an initial draw-in effect.

[SRC]tsx
1import { SyncRatioChart } from "@mdrbx/nerv-ui";

Basic Usage

DEFAULTinspection frame
live inspectionframe-01
+1.00.0-1.0
FREQ: 0.040Hz / 0.055HzAMP: 50px / 40px

Custom Frequencies

HIGH FREQinspection frame
live inspectionframe-01
+1.00.0-1.0
FREQ: 0.080Hz / 0.120HzAMP: 40px / 30px

Fast Speed

SPEED x3inspection frame
live inspectionframe-01
+1.00.0-1.0
FREQ: 0.040Hz / 0.055HzAMP: 50px / 40px

Without Grid

NO GRIDinspection frame
live inspectionframe-01
+1.00.0-1.0
FREQ: 0.040Hz / 0.055HzAMP: 50px / 40px

Props

PropTypeDefaultDescription
frequencyAnumber0.04Wave A frequency
frequencyBnumber0.055Wave B frequency
amplitudeAnumber50Wave A amplitude in pixels
amplitudeBnumber40Wave B amplitude in pixels
phaseAnumber0Wave A phase offset in radians
phaseBnumber1.2Wave B phase offset in radians
showGridbooleantrueShow green grid background
titlestringChart title
animatedbooleantrueEnable draw-in + continuous oscillation
speednumber1Speed multiplier for wave oscillation
classNamestring""Additional CSS classes
[i]CONTINUOUS MOVEMENT

Waves oscillate continuously via requestAnimationFrame. Initial draw-in animation plays for 1.5 seconds, then seamlessly transitions to real-time oscillation. Wave B moves at 0.7× the speed of Wave A for organic visual variety.