Skip to content

Commit

Permalink
Clearer handling for run chart type
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Apr 1, 2024
1 parent 3200a47 commit dc73197
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Outlier Flagging/assuranceIconToDraw.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import type { viewModelClass } from "../Classes";

export default function assuranceIconToDraw(viewModel: viewModelClass): string {
if (viewModel.inputSettings.settings.spc.chart_type === "run") {
return "none";
}
const imp_direction: string = viewModel.inputSettings.settings.outliers.improvement_direction;
const N: number = viewModel.controlLimits.ll99.length - 1;
const alt_target: number = viewModel.controlLimits?.alt_targets?.[N];
Expand Down

0 comments on commit dc73197

Please sign in to comment.