Skip to content

Commit

Permalink
Add total score to title of plot
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-mather committed Sep 29, 2024
1 parent 95674b1 commit d57f2cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/_plots/TotalScorePlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function TotalScorePlot(props: TotalScorePlotProps) {
// NOTE: round thresholds down to nearest integer
const sd_threshold = Math.floor(get_sd_threshold());
const spec_threshold = Math.floor(data_summary.specificity_100["total"]);
const plot_title = `ACE-III total score (${total || ""}/100)`;

useEffect(() => {
const plot = Plot.plot({
Expand Down Expand Up @@ -120,7 +121,7 @@ export default function TotalScorePlot(props: TotalScorePlotProps) {
return (
<div>
<PlotTitleWithTooltip
title="ACE-III Total score"
title={plot_title}
tooltip_content={<TotalScoreLegend />}
button_content={
<>
Expand Down

0 comments on commit d57f2cd

Please sign in to comment.