SL filter
This commit is contained in:
10
plots.py
10
plots.py
@@ -92,6 +92,11 @@ class QualtricsPlotsMixin:
|
||||
|
||||
parts.append(f"{short_code}-{val_str}")
|
||||
|
||||
# Append straight-liner threshold if set
|
||||
sl_threshold = getattr(self, 'sl_threshold', None)
|
||||
if sl_threshold is not None:
|
||||
parts.append(f"SL-gte{sl_threshold}")
|
||||
|
||||
if not parts:
|
||||
return "All_Respondents"
|
||||
|
||||
@@ -182,6 +187,11 @@ class QualtricsPlotsMixin:
|
||||
sample_size = self._get_filtered_sample_size()
|
||||
sample_prefix = f"Sample size: {sample_size}" if sample_size is not None else ""
|
||||
|
||||
# Append straight-liner threshold if set
|
||||
sl_threshold = getattr(self, 'sl_threshold', None)
|
||||
if sl_threshold is not None:
|
||||
parts.append(f"STRAIGHT-LINER EXCL: ≥{sl_threshold} question groups")
|
||||
|
||||
if not parts:
|
||||
# No filters active - return just sample size (or empty string if no sample size)
|
||||
return sample_prefix
|
||||
|
||||
Reference in New Issue
Block a user