bonsai-rx / gui

Bonsai Library for composing user interfaces and real-time graphs
http://bonsai-rx.org/gui/
MIT License
0 stars 2 forks source link

Add support for composing bar and rolling graphs in a single panel #15

Closed glopesdev closed 8 months ago

glopesdev commented 8 months ago

This PR adds support for dynamic composition of multiple time-series plots via the new GraphPanel operator. This graph container also allows for setting a cap on number of points per time-series, and specifying a span in the base axis which is used to discard data in a moving or rolling fashion.

The main constraints in this first implementation is that each composed plot needs to share the same base axis type. The base axis currently can be either a linear range, a date range or a discrete set of values. It is possible to use either X or Y axes as the base axis as long as all the composed bar plots overlaid onto the panel share the same base.