Skip to content

Commit 9b9f2a8

Browse files
authored
DEV-48974 Add max series UI ff for rubrik
1 parent 4292526 commit 9b9f2a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

public/app/features/explore/Graph/GraphContainer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { ExploreGraph } from './ExploreGraph';
3030
import { ExploreGraphLabel } from './ExploreGraphLabel';
3131
import { loadGraphStyle } from './utils';
3232

33-
const MAX_NUMBER_OF_TIME_SERIES = 20;
33+
let MAX_NUMBER_OF_TIME_SERIES = 20; // LOGZ.IO GRAFANA CHANGE
3434

3535
interface Props extends Pick<PanelChromeProps, 'statusMessage'> {
3636
width: number;
@@ -65,6 +65,9 @@ export const GraphContainer = ({
6565
const [showAllSeries, toggleShowAllSeries] = useToggle(false);
6666
const [graphStyle, setGraphStyle] = useState(loadGraphStyle);
6767
const styles = useStyles2(getStyles);
68+
// LOGZ.IO GRAFANA CHANGE :: make the max number of time series bigger by FF. requested by rrk
69+
const showMoreTimeSeries = (window as any).logzio?.configs?.featureFlags?.MaxNumberOfTimeSeriesBigger;
70+
MAX_NUMBER_OF_TIME_SERIES = showMoreTimeSeries ? 500 : 20;
6871

6972
const onGraphStyleChange = useCallback((graphStyle: ExploreGraphStyle) => {
7073
storeGraphStyle(graphStyle);

0 commit comments

Comments
 (0)