Commit ·
c1961f5
1
Parent(s): 3318017
Show Wrist and Tips by default in graphs
Browse files93 unmodified lines949596979897989910010110210310410510693 unmodified lines // Get all keys except timestamp from the first row const keys = Object.keys(chartData[0]).filter((k) => k !== "timestamp"); setDataKeys(keys); // Default to hidden to avoid performance issues with many joints setVisibleKeys([]); // Show WRIST and TIPS by default for a good overview without performance lag const defaultVisible = keys.filter(k => k.toLowerCase().includes("wrist") || k.toLowerCase().includes("tip") ); setVisibleKeys(defaultVisible); }, [chartData]);
// Parse dataKeys into groups (dot notation)src/components/data-recharts.tsx+7-2