nodes: 0, module; 1, function_definition; 2, function_name:fixed_legend_filter_sort; 3, parameters; 4, block; 5, identifier:self; 6, identifier:fixed_legend_filter_sort; 7, expression_statement; 8, expression_statement; 9, comment:# noqa: E501; 10, if_statement; 11, expression_statement; 12, comment:"""Sets the fixed_legend_filter_sort of this ChartSettings.
  
          Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend  # noqa: E501
  
          :param fixed_legend_filter_sort: The fixed_legend_filter_sort of this ChartSettings.  # noqa: E501
          :type: str
          """; 13, assignment; 14, comparison_operator:fixed_legend_filter_sort not in allowed_values; 15, block; 16, assignment; 17, identifier:allowed_values; 18, list; 19, identifier:fixed_legend_filter_sort; 20, identifier:allowed_values; 21, raise_statement; 22, attribute; 23, identifier:fixed_legend_filter_sort; 24, string:"TOP"; 25, string:"BOTTOM"; 26, call; 27, identifier:self; 28, identifier:_fixed_legend_filter_sort; 29, identifier:ValueError; 30, argument_list; 31, call; 32, attribute; 33, argument_list; 34, string:"Invalid value for `fixed_legend_filter_sort` ({0}), must be one of {1}"; 35, comment:# noqa: E501; 36, identifier:format; 37, identifier:fixed_legend_filter_sort; 38, identifier:allowed_values
code: def fixed_legend_filter_sort(self, fixed_legend_filter_sort):
          """Sets the fixed_legend_filter_sort of this ChartSettings.
  
          Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend  # noqa: E501
  
          :param fixed_legend_filter_sort: The fixed_legend_filter_sort of this ChartSettings.  # noqa: E501
          :type: str
          """
          allowed_values = ["TOP", "BOTTOM"]  # noqa: E501
          if fixed_legend_filter_sort not in allowed_values:
              raise ValueError(
                  "Invalid value for `fixed_legend_filter_sort` ({0}), must be one of {1}"  # noqa: E501
                  .format(fixed_legend_filter_sort, allowed_values)
              )
  
          self._fixed_legend_filter_sort = fixed_legend_filter_sort