Skip to content

histogram must be str not list #8028

@Foristkirito

Description

@Foristkirito

I want to use a table to generate his graph, but get the below error:

Traceback (most recent call last):
  File "/home/superset/superset/views/base.py", line 122, in wraps
    return f(self, *args, **kwargs)
  File "/home/superset/superset/utils/decorators.py", line 70, in wrapper
    return f(*args, **kwargs)
  File "/home/superset/superset/views/core.py", line 1417, in explore_json
    viz_obj, csv=csv, query=query, results=results, samples=samples
  File "/home/superset/superset/views/core.py", line 1349, in generate_json
    payload = viz_obj.get_payload()
  File "/home/superset/superset/viz.py", line 374, in get_payload
    payload = self.get_df_payload(query_obj)
  File "/home/superset/superset/viz.py", line 389, in get_df_payload
    query_obj = self.query_obj()
  File "/home/superset/superset/viz.py", line 1468, in query_obj
    d["columns"] = numeric_columns + self.groupby
TypeError: must be str, not list

here is my example table

image

and my config:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions