Skip to content

Commit

Permalink
Merge pull request cBioPortal#4803 from TJMKuijpers/sv-add-p-value
Browse files Browse the repository at this point in the history
Default visibility of p-value above legend SV plot
  • Loading branch information
inodb authored Jan 5, 2024
2 parents 7b13542 + 824daa4 commit f8eddaf
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 11 deletions.
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.
17 changes: 6 additions & 11 deletions src/pages/resultsView/survival/SurvivalChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export default class SurvivalChartExtended
},
},
pValue: {
x: 800,
y: 50,
x: 910,
y: 30,
textAnchor: 'start',
},
legend: {
Expand Down Expand Up @@ -576,11 +576,8 @@ export default class SurvivalChartExtended
private get pValueText() {
return (
<VictoryLabel
x={this.styleOpts.width - this.styleOpts.padding.right + 10}
y={
this.styleOpts.pValue.y +
50 * this.analysisGroupsWithData.length
}
x={this.styleOpts.pValue.x}
y={this.styleOpts.pValue.y}
style={baseLabelStyles}
textAnchor={this.styleOpts.pValue.textAnchor}
text={`Logrank Test P-Value: ${this.pValue}`}
Expand Down Expand Up @@ -1406,13 +1403,11 @@ export default class SurvivalChartExtended
domain={[0, 100]}
crossAxis={false}
/>

{this.showPValueText && this.pValueText}
{this.showLegend && this.xAxisForPlot}
{!this.showLegend && this.xAxisForSummaryViewPlot}
{this.scattersAndLines}
{this.showLegend &&
this.showHazardRatio &&
this.pValueText}
{this.showLegend && this.showHazardRatio}
{this.showNormalLegend && this.defaultLegend}
{this.showHazardRatio && (
<VictoryLegend
Expand Down

0 comments on commit f8eddaf

Please sign in to comment.