Search code examples
apache-superset

How to change a legend in the Superset Chart


I have a line graph like this but I couldn't figure out how to change the legend here. I tried to modify the metadata and couldn't make it work:

enter image description here


Solution

  • If Count(*) is a metric name, you need to go to your datasource >edit>list metrics and add a verbose_name with the kind of name you want to see on the legend and save. That should affect what is displayed on the legend. Please note that this true only if the legend is metric.When it's grouped, the legend is dictated by the group by field data.