+
+
Motor Currents
+
+
+
+
+
+
+
+
+ `${Math.round((Date.now() - t) / 1000)}s ago`}
+ tick={{ fill: '#aaa', fontSize: 10 }}
+ axisLine={{ stroke: '#444' }}
+ tickLine={{ stroke: '#444' }}
+ minTickGap={30}
+ />
+ Number.isFinite(dataMax) ? Math.max(DEFAULT_MAX_AMPS, Math.ceil(dataMax)) : DEFAULT_MAX_AMPS,
+ ]}
+ unit="A"
+ tickFormatter={(c) => Number(c).toFixed(2)}
+ tick={{ fill: '#aaa', fontSize: 10 }}
+ axisLine={{ stroke: '#444' }}
+ tickLine={{ stroke: '#444' }}
+ width={55}
+ />
+ [`${Number(value).toFixed(2)} A`, name]}
+ labelFormatter={(value) => `${((Date.now() - Number(value)) / 1000).toFixed(1)}s ago`}
+ contentStyle={{
+ background: '#222',
+ border: '1px solid #444',
+ borderRadius: '8px',
+ color: '#fff',
+ }}
+ />
+
+ {KEYS.map((key) => (
+
+ ))}
+
+
+
+
+
+
+ );
+};
+
+export default MotorCurrentGraphPanel;