Skip to content

Commit

Permalink
Merge pull request #4636 from dippindots/fix-10148
Browse files Browse the repository at this point in the history
Study view KM plot: Updating tooltip and increasing threshold for compact mode
  • Loading branch information
alisman authored Jun 2, 2023
2 parents 2740f07 + 4bdf4a8 commit 6890ad8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/pages/resultsView/survival/SurvivalChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,7 @@ export default class SurvivalChart
@computed get compactTooltipContent() {
return (
<div>
Events during [{this.tooltipModel.datum.x},
{this.tooltipModel.datum.x + 1}) months
Events during month {this.tooltipModel.datum.x}
<br />
{this.tooltipModel.datum.numberOfEvents !== undefined && (
<>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/resultsView/survival/SurvivalUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export const survivalClinicalDataNullValueSet = new Set([
'na',
]);

export const SURVIVAL_COMPACT_MODE_THRESHOLD = 1000;
// TODO: We can add this into the server properties if needed
export const SURVIVAL_COMPACT_MODE_THRESHOLD = 15000;

export function sortPatientSurvivals(patientSurvivals: PatientSurvival[]) {
// First sort by month in asc order (smaller number to the front)
Expand Down

0 comments on commit 6890ad8

Please sign in to comment.