Skip to content

Commit

Permalink
Tweak total score plot title
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-mather committed Sep 29, 2024
1 parent 3ca06ea commit a6dd431
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/_plots/TotalScorePlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ 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)`;
const plot_title = total
? `ACE-III total score (/100): ${total}`
: "ACE-III total score (/100)";

useEffect(() => {
const plot = Plot.plot({
Expand Down

0 comments on commit a6dd431

Please sign in to comment.