Skip to content

Mixed timeseries applies the wrong crossfilter value #41622

Description

@GustafHultgren

Bug description

Cross filters are not applied properly on mixed time series charts. When clicking on a data point, no cross filter display is rendered at the top of the dashboard filter panel, but at the same time other charts in the same dashboard become empty due to a wrong cross filter value being applied. This happens regardless of plot types for the two plots.

I reckon this is because the value for cross filter event handlers need the formatted column displayName and not the raw seriesName to resolve the filter value through the label map.

Steps to reproduce:

  1. Create an empty dashboard
  2. Add the "Publishers with most titles" chart to the dashboard
  3. Create a mixed time series chart using the same dataset "video_game_sales"
  4. Click on a data point in the mixed time series chart

Expected:
A cross filter value display should appear in the filter panel. Also the "Publishers with most titles" should have the proper cross filter applied

Actual:
No cross filter value displayed and the "Publishers with most titles" chart becomes empty

Screenshots/recordings

Expected:
Image

Actual:
Image

Superset version

master / latest-dev

Python version

Not applicable

Node version

Not applicable

Browser

Chrome

Additional context

Related to issue #38870

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions