Raffael-Kultyshev commited on
Commit
3318017
·
1 Parent(s): 62d6a40

Update dataset ID and optimize graph visibility

Browse files
Files changed (1) hide show
  1. src/components/data-recharts.tsx +2 -1
src/components/data-recharts.tsx CHANGED
@@ -94,7 +94,8 @@ const SingleDataGraph = React.memo(
94
  // Get all keys except timestamp from the first row
95
  const keys = Object.keys(chartData[0]).filter((k) => k !== "timestamp");
96
  setDataKeys(keys);
97
- setVisibleKeys(keys);
 
98
  }, [chartData]);
99
 
100
  // Parse dataKeys into groups (dot notation)
 
94
  // Get all keys except timestamp from the first row
95
  const keys = Object.keys(chartData[0]).filter((k) => k !== "timestamp");
96
  setDataKeys(keys);
97
+ // Default to hidden to avoid performance issues with many joints
98
+ setVisibleKeys([]);
99
  }, [chartData]);
100
 
101
  // Parse dataKeys into groups (dot notation)