Call `Viz.bars_range()` from display loop
parent
5cff7a7193
commit
a13b7aab7c
|
@ -99,7 +99,8 @@ def chart_maxmin(
|
||||||
Compute max and min datums "in view" for range limits.
|
Compute max and min datums "in view" for range limits.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
last_bars_range = chart.bars_range()
|
main_viz = chart.get_viz(chart.name)
|
||||||
|
last_bars_range = main_viz.bars_range()
|
||||||
out = chart.maxmin(name=fqsn)
|
out = chart.maxmin(name=fqsn)
|
||||||
|
|
||||||
if out is None:
|
if out is None:
|
||||||
|
@ -215,7 +216,8 @@ class DisplayState(Struct):
|
||||||
append_diff = i_step - _i_last_append
|
append_diff = i_step - _i_last_append
|
||||||
|
|
||||||
# real-time update necessary?
|
# real-time update necessary?
|
||||||
_, _, _, r = chart.bars_range()
|
main_viz = chart.get_viz(chart.name)
|
||||||
|
_, _, _, r = main_viz.bars_range()
|
||||||
liv = r >= shm.index
|
liv = r >= shm.index
|
||||||
|
|
||||||
# update the "last datum" (aka extending the vizs graphic with
|
# update the "last datum" (aka extending the vizs graphic with
|
||||||
|
|
Loading…
Reference in New Issue