Skip to content

Commit

Permalink
Fix log scale breaking box plot in plots tab (#5079)
Browse files Browse the repository at this point in the history
* fix log scale breaking box plot
* update screenshots

---------

Co-authored-by: Bryan Lai <[email protected]>
  • Loading branch information
gblaih and Bryan Lai authored Jan 7, 2025
1 parent 6828ab0 commit 6376681
Show file tree
Hide file tree
Showing 43 changed files with 9 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions end-to-end-test/remote/specs/core/plots.screenshot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,13 @@ describe('plots tab screenshot tests', function() {
`${CBIOPORTAL_URL}/results/plots?Action=Submit&RPPA_SCORE_THRESHOLD=2.0&Z_SCORE_THRESHOLD=2.0&cancer_study_list=prad_mich&case_set_id=prad_mich_cna&data_priority=0&gene_list=ERG&geneset_list=%20&genetic_profile_ids_PROFILE_COPY_NUMBER_ALTERATION=prad_mich_cna&genetic_profile_ids_PROFILE_MUTATION_EXTENDED=prad_mich_mutations&genetic_profile_ids_PROFILE_STRUCTURAL_VARIANT=prad_mich_fusion&plots_coloring_selection=%7B"colorByCopyNumber"%3A"true"%2C"colorBySv"%3A"true"%7D&plots_horz_selection=%7B"dataType"%3A"clinical_attribute"%7D&plots_vert_selection=%7B"selectedGeneOption"%3A2078%2C"dataType"%3A"COPY_NUMBER_ALTERATION"%7D&profileFilter=0&tab_index=tab_visualize`
);

await waitForAndCheckPlotsTab();
});
it('plots tab box plot log scale zero', async () => {
await goToUrlAndSetLocalStorage(
`${CBIOPORTAL_URL}/results/plots?cancer_study_list=msk_spectrum_tme_2022&tab_index=tab_visualize&case_set_id=msk_spectrum_tme_2022_all&Action=Submit&gene_list=EGFR&plots_horz_selection=%7B"dataType"%3A"clinical_attribute"%2C"selectedDataSourceOption"%3A"METASTATIC_SITE"%2C"selectedGeneOption"%3A1956%2C"selectedGenericAssayOption"%3A"T_cell"%2C"mutationCountBy"%3A"MutationType"%2C"logScale"%3A"false"%7D&plots_vert_selection=%7B"selectedGeneOption"%3A1956%2C"dataType"%3A"SINGLE_CELL_RELATIVE_CELL_TYPE_COUNTS"%2C"logScale"%3A"true"%2C"selectedDataSourceOption"%3A"cell_type_relative_counts"%2C"mutationCountBy"%3A"MutationType"%2C"selectedGenericAssayOption"%3A"T_cell"%7D&plots_coloring_selection=%7B"selectedOption"%3A"-10000_undefined"%7D`
);

await waitForAndCheckPlotsTab();
});
});
Expand Down
3 changes: 2 additions & 1 deletion src/shared/components/plots/BoxScatterPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ export default class BoxScatterPlot<
}}
orientation="bottom"
offsetY={50}
domain={this.plotDomain.x}
crossAxis={false}
label={this.props.axisLabelX}
tickValues={
Expand Down Expand Up @@ -632,6 +633,7 @@ export default class BoxScatterPlot<
<VictoryAxis
orientation="left"
offsetX={50}
domain={this.plotDomain.y}
crossAxis={false}
label={this.yAxisLabel}
dependentAxis={true}
Expand Down Expand Up @@ -809,7 +811,6 @@ export default class BoxScatterPlot<
height={this.chartHeight}
standalone={false}
domainPadding={this.chartDomainPadding}
domain={this.plotDomain}
singleQuadrantDomainPadding={{
[this.dataAxis]: !!this.props
.startDataAxisAtZero,
Expand Down

0 comments on commit 6376681

Please sign in to comment.