Skip to content

Commit

Permalink
Move MultipleCategoryBarPlot component into shared folder
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Jan 10, 2025
1 parent 8cbd382 commit 6abbaf5
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/pages/groupComparison/CategoryPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { observer } from 'mobx-react';
import { computed, makeObservable } from 'mobx';
import MultipleCategoryBarPlot, {
IMultipleCategoryBarPlotProps,
} from 'pages/groupComparison/MultipleCategoryBarPlot';
} from 'shared/components/plots/MultipleCategoryBarPlot';
import MultipleCategoryHeatmap from 'shared/components/plots/MultipleCategoryHeatmap';
import autobind from 'autobind-decorator';
import { OncoprintJS } from 'oncoprintjs';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/resultsView/enrichments/EnrichmentsUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from './AlterationEnrichmentsTable';
import styles from './styles.module.scss';
import classNames from 'classnames';
import { IMultipleCategoryBarPlotData } from 'pages/groupComparison/MultipleCategoryBarPlot';
import { IMultipleCategoryBarPlotData } from 'shared/components/plots/MultipleCategoryBarPlot';
import { getTextColor } from '../../groupComparison/OverlapUtils';
import { DefaultTooltip, TruncatedText } from 'cbioportal-frontend-commons';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/resultsView/enrichments/GeneBarPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
DownloadControlOption,
} from 'cbioportal-frontend-commons';
import autobind from 'autobind-decorator';
import MultipleCategoryBarPlot from 'pages/groupComparison/MultipleCategoryBarPlot';
import MultipleCategoryBarPlot from 'shared/components/plots/MultipleCategoryBarPlot';
import ReactSelect from 'react-select';
import OQLTextArea, {
GeneBoxType,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/resultsView/enrichments/GenericAssayBarPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
DownloadControlOption,
} from 'cbioportal-frontend-commons';
import autobind from 'autobind-decorator';
import MultipleCategoryBarPlot from 'pages/groupComparison/MultipleCategoryBarPlot';
import MultipleCategoryBarPlot from 'shared/components/plots/MultipleCategoryBarPlot';
import ReactSelect from 'react-select';
import _ from 'lodash';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/plots/BoxScatterPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import classnames from 'classnames';
import WindowStore from '../window/WindowStore';
import LegendDataComponent from './LegendDataComponent';
import LegendLabelComponent from './LegendLabelComponent';
import { PQValueLabel } from 'pages/groupComparison/MultipleCategoryBarPlot';
import { PQValueLabel } from 'shared/components/plots/MultipleCategoryBarPlot';

export interface IBaseBoxScatterPlotPoint {
value: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ import {
VictoryGroup,
} from 'victory';
import { tickFormatNumeral } from 'cbioportal-frontend-commons';
import { makeUniqueColorGetter } from '../../shared/components/plots/PlotUtils';
import { makeUniqueColorGetter } from './PlotUtils';
import {
makePlotData,
makeBarSpecs,
sortDataByCategory,
getSortedMajorCategories,
} from '../../shared/components/plots/MultipleCategoryBarPlotUtils';
} from './MultipleCategoryBarPlotUtils';
import * as ReactDOM from 'react-dom';
import { Popover } from 'react-bootstrap';
import classnames from 'classnames';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IStringAxisData } from './PlotsTabUtils';
import { SortByOptions } from './PlotsTab';
import _ from 'lodash';
import { IMultipleCategoryBarPlotData } from '../../../pages/groupComparison/MultipleCategoryBarPlot';
import { IMultipleCategoryBarPlotData } from 'shared/components/plots/MultipleCategoryBarPlot';
interface CountItem {
majorCategory: string;
count: number;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/plots/PlotsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ import {
scatterPlotSize,
} from '../../../shared/components/plots/PlotUtils';
import { getTablePlotDownloadData } from '../../../shared/components/plots/TablePlotUtils';
import MultipleCategoryBarPlot from 'pages/groupComparison/MultipleCategoryBarPlot';
import MultipleCategoryBarPlot from 'shared/components/plots/MultipleCategoryBarPlot';
import { RESERVED_CLINICAL_VALUE_COLORS } from 'shared/lib/Colors';
import {
DownloadControlOption,
Expand Down

0 comments on commit 6abbaf5

Please sign in to comment.