GitHub user MidnightOakMapleNote closed a discussion: Configuring two metrics causes SQL statements to appear in the echart legend configuration, while configuring one metric works normally.
Hello everyone, does anyone know why this situation occurs? During chart configuration, if only one metric is configured, the configuration works normally. For example, if only "COUNT_DISTINCT(classification_name)" is configured, the legend will display each classification name from the table, which is [classification_name1, classification_name2.....] at this time. However, if two metrics (COUNT_DISTINCT(classification_name) and COUNT_DISTINCT(custom_type)) are configured, as shown in the screenshot, the legend configuration of the entire echart will become ['COUNT_DISTINCT(custom_type) classification_name1', 'COUNT_DISTINCT(custom_type) classification_name2'], etc. Could this be a bug? The expected result is that when two metrics are configured, the legend should be [custom_type1, classification_name2, custom_type2, classification_name2], without the SQL expressions included. Thank you all for your help. I would be very grateful for your answers. <img width="1184" height="558" alt="image" src="https://github.com/user-attachments/assets/cd8ff8fc-d19c-4224-9ded-8c0eeea7898c" /> <img width="1260" height="589" alt="image" src="https://github.com/user-attachments/assets/87c19619-bfa9-4abe-8cbb-6992c8c5f9f2" /> GitHub link: https://github.com/apache/superset/discussions/34689 ---- This is an automatically sent email for notifications@superset.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org