visualization-tool icon indicating copy to clipboard operation
visualization-tool copied to clipboard

Avoid parsing incorrect date in useSyncInteractiveFilters

Open bprusinowski opened this issue 10 months ago • 2 comments

See the #2085 for more context – we fixed a bug with interactive time range brush just before PROD release and should tackle it properly when time allows.

bprusinowski avatar Feb 05 '25 20:02 bprusinowski

hi @bprusinowski Thanks for the quick fix and the slider in the edit menu is fixed indeed! However the slider in the diagram itself seems to be working autonomous still, both during edit and publish mode.

Image

tboeni avatar Feb 06 '25 08:02 tboeni

Hi @tboeni

thank you for your comment and the clarification. We tested and assessed the issue you reported, and in our opinion the slider in the chart is behaving as expected when the interactive filter is set and the "most recent year" toggle is active. The intended behaviour is that the chart updates when new data is added and that users can freely move the slider in the chart, not that the time slider interaction is "locked" to the most recent date.

In the side panel, where the chart editor sets the filters, if the option "use most recent" is toggled, the slider only shows one "dot" at the beginning date, as the end date will always be defined by the data and the most recent year available (as seen in the screen recording below).

https://github.com/user-attachments/assets/3a84caf5-35df-4368-a46d-2b351bd0cc6e

In the chart itself, we include dots at both the beginning and end of the time slider. This allows the user to interact with the data and view different date ranges and "zoom-in" to a specific time period of their choice. When the data is updated with a new year, the chart should adjust automatically to show the latest date on the x axis.

If I've misunderstood your comment or if you feel the current behavior needs enhancement, please let me know. I'm happy to add this topic to the next weekly call's agenda.

cc: @adintegra @bprusinowski

sosiology avatar Feb 06 '25 10:02 sosiology