Commit ·
3318017
1
Parent(s): 62d6a40
Update dataset ID and optimize graph visibility
Browse files93 unmodified lines94959697989910093 unmodified lines// Get all keys except timestamp from the first rowconst keys = Object.keys(chartData[0]).filter((k) => k !== "timestamp");setDataKeys(keys);setVisibleKeys(keys);}, [chartData]);// Parse dataKeys into groups (dot notation)93 unmodified lines94959697989910010193 unmodified lines// Get all keys except timestamp from the first rowconst keys = Object.keys(chartData[0]).filter((k) => k !== "timestamp");setDataKeys(keys);// Default to hidden to avoid performance issues with many jointssetVisibleKeys([]);}, [chartData]);// Parse dataKeys into groups (dot notation)
src/components/data-recharts.tsx+2-1