Skip to content

Commit

Permalink
Switch default plot type to density plot
Browse files Browse the repository at this point in the history
  • Loading branch information
NateLanza committed Feb 19, 2025
1 parent 528355e commit d1fd4ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/upset/src/components/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable no-shadow */
import { css } from '@emotion/react';
import { convertConfig, CoreUpsetData, UpsetConfig } from '@visdesignlab/upset2-core';
import {
AttributePlotType, convertConfig, CoreUpsetData, UpsetConfig,
} from '@visdesignlab/upset2-core';
import {
createContext, FC, useEffect, useMemo,
} from 'react';
Expand Down Expand Up @@ -117,7 +119,7 @@ export const Root: FC<Props> = ({
const state = convertConfig(provenance.getState());
state.visibleAttributes.forEach((attr) => {
if (attr !== 'Degree' && attr !== 'Deviation' && !state.attributePlots[attr]) {
state.attributePlots = { ...state.attributePlots, [attr]: 'Box Plot' };
state.attributePlots = { ...state.attributePlots, [attr]: AttributePlotType.DensityPlot };
}
});
setState(state);
Expand Down

0 comments on commit d1fd4ba

Please sign in to comment.