Add time series plot explorer for numeric and date columns - #849
Merged
Merged
Conversation
cristian-tamblay
force-pushed
the
feat/time-series-explorer
branch
from
August 31, 2026 22:27
c991be8 to
7c8128b
Compare
Base automatically changed from
feat/time-series-window-converter
to
develop
September 1, 2026 12:58
Draws numeric columns against a date column as lines over time. The dates are read with the format the column already declares, sorted, and passed as real datetimes, so the axis is a genuine time axis and gaps stay visible instead of collapsing into evenly spaced categories. The existing scatter explorer could not do this: it does not accept Date, and since a Date is stored as text it would have plotted the axis as unordered categories in row order. validate_columns is tightened beyond the inherited type check, which would accept two numbers and no date, or two dates and no series.
cristian-tamblay
force-pushed
the
feat/time-series-explorer
branch
from
September 1, 2026 12:58
7c8128b to
0ba0569
Compare
cristian-tamblay
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
TimeSeriesPlotExplorer, so a target column can actually be looked at over time.ScatterPlotExplorerwas the nearest existing thing and does not work here for two independent reasons. Itsallowed_typesis[Float, Integer, Categorical], so it will not accept aDatecolumn at all. And because a dashAIDateis stored as text, addingDateto that list would make Plotly treat the axis as unordered categories drawn in row order rather than chronological order. That is a wrong plot, not a limited one.Type of Change
Check all that apply like this [x]:
Changes (by file)
DashAI/back/exploration/explorers/time_series_plot.py: new explorer. Reads the dates with the format the column already declares, sorts them, and passes real datetimes to Plotly, so the horizontal axis is a genuine time axis and gaps stay visible.allowed_types = [Date, Float, Integer],input_cardinality = {"min": 2}.validate_columnsis tightened past the inherited check, which would accept two numbers and no date, or two dates and no series.DashAI/back/initial_components.py: register the explorer.tests/back/exploration/test_time_series_plot.py: new. 12 tests.Testing (optional)
Notes (optional)
input_cardinalityis a minimum rather than exactly two on purpose: one date plus several series on shared axes is the more useful version and costs nothing, sincepx.linetakes a list of y columns.Dates are read with the declared format rather than reguessed, so the plot can never disagree with the stored type. A column whose format is wrong raises instead of drawing a plausible but wrong picture.