def METHOD_NAME(self, data: t.Any, nb_rows_max: int, chart_mode: str):
    if chart_mode not in self._CHART_MODES:
        _warn(f"{type(self).__name__} is only applicable for {' '.join(self._CHART_MODES)}.")
        return False
    if self.threshold is None:
        if nb_rows_max < len(data):
            return True
    elif self.threshold < len(data):
        return True
    return False