ornl-epics/dbwr

Databrowser: time span doesn't work properly when there is more than one plot

Closed this issue · 3 comments

When there is more than one plot on the screen and they have different time spans the second plot's time span jumps between it's own time span and the span of the first plot.
It would be nice if the position of the Setting pop-up would be connected to the relevant plot widget.

Looks like the error is in https://github.com/ornl-epics/dbwr/blob/main/src/main/webapp/widgets/databrowser.js
While most of the info is specific to the widget (widget.data("traces")), the start and end time is held within the global _db_plot_options.xaxis.min and _db_plot_options.xaxis.max.
So each widget needs its own copy of the _db_plot_options.
Can you fix that?

Has been fixed