Skip to content

Dtype plot behaviour - #87

Merged
Bilchreis merged 2 commits into
mainfrom
dtype-plot-behaviour
Jul 1, 2026
Merged

Dtype plot behaviour#87
Bilchreis merged 2 commits into
mainfrom
dtype-plot-behaviour

Conversation

@Bilchreis

@Bilchreis Bilchreis commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

closes #85

  • Introduced a DTypePlot behaviour with four implementations (Scalar, Enum, ArrayHeatmap, Struct) that encapsulate how each data type builds ECharts series, options, and live-update payloads, replacing the scattered dtype-branching in Builders
  • Added multi-grid struct plots: one stacked grid row per plottable field, with per-field dtype dispatch, shared x-axis pointer linking, and a scalar legend positioned at the vertical centre of scalar sub-fields
  • Improved live plot data management in the JS hook: time-window-based trimming replaces max-point-count trimming, and expanding the view window triggers a fetch-chart-range push to backfill historical data via a new prepend-chart-data-* event; shrinking eagerly drops out-of-range points
  • Added _xAxisPatch helper so range-button updates apply to all x-axes in multi-grid charts (struct subplots)
  • Extended PlotSpec with a trace_updates/3 callback for typed live-update dispatch

@Bilchreis
Bilchreis merged commit 775ee4b into main Jul 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Plotting Behaviour for Underlying Datatypes

1 participant